[Lldb-commits] [lldb] r160887 - /lldb/trunk/source/Expression/IRForTarget.cpp
Sean Callanan
scallanan at apple.com
Fri Jul 27 12:25:24 PDT 2012
Author: spyffe
Date: Fri Jul 27 14:25:24 2012
New Revision: 160887
URL: http://llvm.org/viewvc/llvm-project?rev=160887&view=rev
Log:
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>
Modified:
lldb/trunk/source/Expression/IRForTarget.cpp
Modified: lldb/trunk/source/Expression/IRForTarget.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/IRForTarget.cpp?rev=160887&r1=160886&r2=160887&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRForTarget.cpp (original)
+++ lldb/trunk/source/Expression/IRForTarget.cpp Fri Jul 27 14:25:24 2012
@@ -2811,7 +2811,12 @@
return false;
}
+ }
+ for (bbi = function->begin();
+ bbi != function->end();
+ ++bbi)
+ {
if (!ResolveCalls(*bbi))
{
if (log)
More information about the lldb-commits
mailing list