aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-08-19 20:03:35 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-08-19 20:03:35 +0000
commit33de00cf5970f11437aef58f452fdc6d84f02074 (patch)
treeb5fdd2da5d52112e3d906aacebd1c11bafbaafa5 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
parent170eb985dad2bc4d0bea63262d043d4135170885 (diff)
downloadllvm-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