Index: src/IceRegistersARM32.h |
diff --git a/src/IceRegistersARM32.h b/src/IceRegistersARM32.h |
index 6e3c56264a98d9e23065493e4eb7e616c3ad1b2b..8941a9e770a6fd2bb5fb392be3e4c6b26064ddef 100644 |
--- a/src/IceRegistersARM32.h |
+++ b/src/IceRegistersARM32.h |
@@ -104,7 +104,7 @@ extern struct RegTableType { |
static inline void assertValidRegNum(RegNumT RegNum) { |
(void)RegNum; |
- assert(RegNum != RegNumT::NoRegister); |
+ assert(RegNum.hasValue()); |
} |
static inline bool isGPRegister(RegNumT RegNum) { |