[Lldb-commits] [lldb] r109477 - /lldb/trunk/source/Expression/IRForTarget.cpp
Sean Callanan
scallanan at apple.com
Mon Jul 26 18:17:28 PDT 2010
Author: spyffe
Date: Mon Jul 26 20:17:28 2010
New Revision: 109477
URL: http://llvm.org/viewvc/llvm-project?rev=109477&view=rev
Log:
Fixed a bug in the IR transformer where we were
trying to do replaceUsesOfWith on a constant,
which doesn't work. Turns out we don't need to
do anything for constants.
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=109477&r1=109476&r2=109477&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRForTarget.cpp (original)
+++ lldb/trunk/source/Expression/IRForTarget.cpp Mon Jul 26 20:17:28 2010
@@ -186,7 +186,16 @@
for (ui = guard_load->use_begin();
ui != guard_load->use_end();
++ui)
- ui->replaceUsesOfWith(guard_load, zero);
+ {
+ if (isa<Constant>(ui))
+ {
+ // do nothing for the moment
+ }
+ else
+ {
+ ui->replaceUsesOfWith(guard_load, zero);
+ }
+ }
guard_load->eraseFromParent();
}
More information about the lldb-commits
mailing list