aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/TransformInternals.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Transforms/TransformInternals.h')
-rw-r--r--lib/Transforms/TransformInternals.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Transforms/TransformInternals.h b/lib/Transforms/TransformInternals.h
index 8edeffc82e..d3ef47aad2 100644
--- a/lib/Transforms/TransformInternals.h
+++ b/lib/Transforms/TransformInternals.h
@@ -12,7 +12,7 @@
#include "llvm/Instruction.h"
#include "llvm/Target/TargetData.h"
#include "llvm/DerivedTypes.h"
-#include "llvm/ConstPoolVals.h"
+#include "llvm/ConstantVals.h"
#include <map>
#include <set>
@@ -24,10 +24,10 @@
//
extern const TargetData TD;
-static int getConstantValue(const ConstPoolInt *CPI) {
- if (const ConstPoolSInt *CSI = dyn_cast<ConstPoolSInt>(CPI))
+static int getConstantValue(const ConstantInt *CPI) {
+ if (const ConstantSInt *CSI = dyn_cast<ConstantSInt>(CPI))
return CSI->getValue();
- return cast<ConstPoolUInt>(CPI)->getValue();
+ return cast<ConstantUInt>(CPI)->getValue();
}