For PR950:
[oota-llvm.git] / lib / Transforms / TransformInternals.h
index 51e32c81e67b9dbdbad86360bfffee1d346092e1..4e289048338619e520b3993c36c7bb7ef8e1ccfe 100644 (file)
@@ -25,7 +25,7 @@
 namespace llvm {
 
 static inline int64_t getConstantValue(const ConstantInt *CPI) {
-  return (int64_t)cast<ConstantInt>(CPI)->getRawValue();
+  return (int64_t)cast<ConstantInt>(CPI)->getZExtValue();
 }