aboutsummaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/Interpreter/Execution.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/Execution.cpp')
-rw-r--r--lib/ExecutionEngine/Interpreter/Execution.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp
index 44c1e48c33..84486c21ee 100644
--- a/lib/ExecutionEngine/Interpreter/Execution.cpp
+++ b/lib/ExecutionEngine/Interpreter/Execution.cpp
@@ -1266,11 +1266,11 @@ void Interpreter::print(const std::string &Name) {
Value *PickedVal = ChooseOneOption(Name, LookupMatchingNames(Name));
if (!PickedVal) return;
- if (const Function *F = dyn_cast<const Function>(PickedVal)) {
+ if (const Function *F = dyn_cast<Function>(PickedVal)) {
CW << F; // Print the function
- } else if (const Type *Ty = dyn_cast<const Type>(PickedVal)) {
+ } else if (const Type *Ty = dyn_cast<Type>(PickedVal)) {
CW << "type %" << Name << " = " << Ty->getDescription() << "\n";
- } else if (const BasicBlock *BB = dyn_cast<const BasicBlock>(PickedVal)) {
+ } else if (const BasicBlock *BB = dyn_cast<BasicBlock>(PickedVal)) {
CW << BB; // Print the basic block
} else { // Otherwise there should be an annotation for the slot#
print(PickedVal->getType(),