Remove dead code
[oota-llvm.git] / lib / Transforms / TransformInternals.h
index 30e3990df48bc65cd2c523d94d9f6bbc0b1be758..f57ed3ea6ecfab099e7b83e92a0e523a0f9ce4fa 100644 (file)
@@ -12,7 +12,7 @@
 #include "llvm/Instruction.h"
 #include "llvm/Target/TargetData.h"
 #include "llvm/DerivedTypes.h"
-#include "llvm/ConstantVals.h"
+#include "llvm/Constants.h"
 #include <map>
 #include <set>
 
@@ -26,8 +26,8 @@ extern const TargetData TD;
 
 static inline int getConstantValue(const ConstantInt *CPI) {
   if (const ConstantSInt *CSI = dyn_cast<ConstantSInt>(CPI))
-    return CSI->getValue();
-  return cast<ConstantUInt>(CPI)->getValue();
+    return (int)CSI->getValue();
+  return (int)cast<ConstantUInt>(CPI)->getValue();
 }