summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-01 16:18:37 +0000
committerChris Lattner <sabre@nondot.org>2001-10-01 16:18:37 +0000
commit4b717c0edc082166e85181fa70e76b17669aebe2 (patch)
tree2f9e2828d1baeba95c31078d9181478d54ad37b9 /llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
parent222b1f5775cfe38e3fc10dbf06e3e88b20b1c88f (diff)
downloadbcm5719-llvm-4b717c0edc082166e85181fa70e76b17669aebe2.tar.gz
bcm5719-llvm-4b717c0edc082166e85181fa70e76b17669aebe2.zip
Add support for new style casts
llvm-svn: 694
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/Execution.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/Execution.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
index ff4e037ce2d..3ecc3ec0eab 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
+++ b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
@@ -810,7 +810,7 @@ void Interpreter::printValue(const string &Name) {
Value *PickedVal = ChooseOneOption(Name, LookupMatchingNames(Name));
if (!PickedVal) return;
- if (const Method *M = PickedVal->castMethod()) {
+ if (const Method *M = dyn_cast<const Method>(PickedVal)) {
cout << M; // Print the method
} else { // Otherwise there should be an annotation for the slot#
printValue(PickedVal->getType(),
OpenPOWER on IntegriCloud