summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/IRForTarget.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2010-12-06 23:53:20 +0000
committerSean Callanan <scallanan@apple.com>2010-12-06 23:53:20 +0000
commitf6c7308bb1e04a08e711abec9ee3afb1a7dc4aab (patch)
tree3bb558f8c7f1eb25ab78667c19555fd5fa4971c1 /lldb/source/Expression/IRForTarget.cpp
parenta4d7830017bf6b6ff6be795b380f3f4c6afb7647 (diff)
downloadbcm5719-llvm-f6c7308bb1e04a08e711abec9ee3afb1a7dc4aab.tar.gz
bcm5719-llvm-f6c7308bb1e04a08e711abec9ee3afb1a7dc4aab.zip
Fixes to make id work as well as well as fix minor errors
when calling built-ins. llvm-svn: 121070
Diffstat (limited to 'lldb/source/Expression/IRForTarget.cpp')
-rw-r--r--lldb/source/Expression/IRForTarget.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Expression/IRForTarget.cpp b/lldb/source/Expression/IRForTarget.cpp
index 591009831c6..6d730d90bdf 100644
--- a/lldb/source/Expression/IRForTarget.cpp
+++ b/lldb/source/Expression/IRForTarget.cpp
@@ -964,6 +964,10 @@ IRForTarget::MaybeHandleCall (Module &llvm_module, CallInst *llvm_call_inst)
if (!fun)
return false;
}
+ else if (const_expr && const_expr->getOpcode() == Instruction::IntToPtr)
+ {
+ return true; // already resolved
+ }
else
{
return false;
OpenPOWER on IntegriCloud