diff options
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-08-19 20:03:35 +0000 |
|---|---|---|
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2014-08-19 20:03:35 +0000 |
| commit | 33de00cf5970f11437aef58f452fdc6d84f02074 (patch) | |
| tree | b5fdd2da5d52112e3d906aacebd1c11bafbaafa5 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp | |
| parent | 170eb985dad2bc4d0bea63262d043d4135170885 (diff) | |
| download | llvm-33de00cf5970f11437aef58f452fdc6d84f02074.zip llvm-33de00cf5970f11437aef58f452fdc6d84f02074.tar.gz llvm-33de00cf5970f11437aef58f452fdc6d84f02074.tar.bz2 | |
IR: Fix ConstantExpr::replaceUsesOfWithOnConstant()
Change `ConstantExpr` to follow the model the other constants are using:
only malloc a replacement if it's going to be used. This fixes a subtle
bug where if an API user had used `ConstantExpr::get()` already to
create the replacement but hadn't given it any users, we'd delete the
replacement.
This relies on r216015 to thread `OnlyIfReduced` through
`ConstantExpr::getWithOperands()`.
llvm-svn: 216016
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp')
0 files changed, 0 insertions, 0 deletions
