diff options
Diffstat (limited to 'lib/Transforms/TransformInternals.h')
-rw-r--r-- | lib/Transforms/TransformInternals.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Transforms/TransformInternals.h b/lib/Transforms/TransformInternals.h index 8cab429..5f87a38 100644 --- a/lib/Transforms/TransformInternals.h +++ b/lib/Transforms/TransformInternals.h @@ -16,9 +16,7 @@ #include <set> static inline int64_t getConstantValue(const ConstantInt *CPI) { - if (const ConstantSInt *CSI = dyn_cast<ConstantSInt>(CPI)) - return CSI->getValue(); - return (int64_t)cast<ConstantUInt>(CPI)->getValue(); + return (int64_t)cast<ConstantInt>(CPI)->getRawValue(); } |