aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis/LiveVar/ValueSet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Analysis/LiveVar/ValueSet.cpp')
-rw-r--r--lib/Analysis/LiveVar/ValueSet.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Analysis/LiveVar/ValueSet.cpp b/lib/Analysis/LiveVar/ValueSet.cpp
index c93bc2028c..6806d1c563 100644
--- a/lib/Analysis/LiveVar/ValueSet.cpp
+++ b/lib/Analysis/LiveVar/ValueSet.cpp
@@ -1,6 +1,6 @@
#include "llvm/Analysis/LiveVar/ValueSet.h"
-#include "llvm/ConstPoolVals.h"
+#include "llvm/ConstantVals.h"
void printValue( const Value *const v) // func to print a Value
@@ -8,8 +8,8 @@ void printValue( const Value *const v) // func to print a Value
if (v->hasName())
cerr << v << "(" << ((*v).getName()) << ") ";
- else if (v->getValueType() == Value::ConstantVal) // if const
- cerr << v << "(" << ((ConstPoolVal *) v)->getStrValue() << ") ";
+ else if (Constant *C = dyn_cast<Constant>(v))
+ cerr << v << "(" << C->getStrValue() << ") ";
else
cerr << v << " ";
}