diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-01 16:18:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-01 16:18:37 +0000 |
commit | 4b717c0edc082166e85181fa70e76b17669aebe2 (patch) | |
tree | 2f9e2828d1baeba95c31078d9181478d54ad37b9 /llvm/lib/ExecutionEngine/Interpreter/Execution.cpp | |
parent | 222b1f5775cfe38e3fc10dbf06e3e88b20b1c88f (diff) | |
download | bcm5719-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.cpp | 2 |
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(), |