summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2012-07-27 19:25:24 +0000
committerSean Callanan <scallanan@apple.com>2012-07-27 19:25:24 +0000
commitbad134ffea053cdc9923d43837e989f45424ca82 (patch)
treee0df44b381a6f87864f72639b1764d0b732ef57d
parent08574d3559792373a2d5da6628fb55254a03549b (diff)
downloadbcm5719-llvm-bad134ffea053cdc9923d43837e989f45424ca82.tar.gz
bcm5719-llvm-bad134ffea053cdc9923d43837e989f45424ca82.zip
Changed the IRForTarget pass to ensure that all
sel_getName() calls are generated for all Objective-C selectors before static literals are moved to the static allocation. This prevents errors of the form Internal error [IRForTarget]: Couldn't change a static reference to an Objective-C selector to a dynamic reference <rdar://problem/11331906> llvm-svn: 160887
-rw-r--r--lldb/source/Expression/IRForTarget.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Expression/IRForTarget.cpp b/lldb/source/Expression/IRForTarget.cpp
index 5b98e2b6acb..544c4bcaf19 100644
--- a/lldb/source/Expression/IRForTarget.cpp
+++ b/lldb/source/Expression/IRForTarget.cpp
@@ -2811,7 +2811,12 @@ IRForTarget::runOnModule (Module &llvm_module)
return false;
}
+ }
+ for (bbi = function->begin();
+ bbi != function->end();
+ ++bbi)
+ {
if (!ResolveCalls(*bbi))
{
if (log)
OpenPOWER on IntegriCloud