diff options
-rw-r--r-- | include/llvm/CodeGen/SelectionDAGNodes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index 333b3751572..96ef061ef81 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -1098,8 +1098,8 @@ public: unsigned getRawSubclassData() const { uint16_t Data; memcpy(&Data, &SDNodeBits, sizeof(SDNodeBits)); - static_assert(sizeof(SDNodeBits) == sizeof(uint16_t), - "SDNodeBits field too small?"); + static_assert(sizeof(SDNodeBits) <= sizeof(uint16_t), + "SDNodeBits field too large?"); return Data; } |