diff options
Diffstat (limited to 'lldb/source/Expression/IRForTarget.cpp')
| -rw-r--r-- | lldb/source/Expression/IRForTarget.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lldb/source/Expression/IRForTarget.cpp b/lldb/source/Expression/IRForTarget.cpp index e201117338b..ce28a8f362c 100644 --- a/lldb/source/Expression/IRForTarget.cpp +++ b/lldb/source/Expression/IRForTarget.cpp @@ -186,7 +186,16 @@ static void TurnGuardLoadIntoZero(Instruction* guard_load, Module &M) 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(); } |

