summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2019-03-05 11:11:34 +0000
committerHeejin Ahn <aheejin@gmail.com>2019-03-05 11:11:34 +0000
commitc7397613d20e480ee90535be6e0760868c483f1b (patch)
tree300b3d08f5790ace2501f7652cb5b36e0b0ec333 /llvm/lib
parentf509fe4655a0c53a7db25d792d22f34daa5bec36 (diff)
downloadbcm5719-llvm-c7397613d20e480ee90535be6e0760868c483f1b.tar.gz
bcm5719-llvm-c7397613d20e480ee90535be6e0760868c483f1b.zip
[WebAssembly] Rename a variable in LateEHPrepare (NFC)
llvm-svn: 355387
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp
index 1c4f42cc26d..d4612b85889 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp
@@ -275,7 +275,7 @@ bool WebAssemblyLateEHPrepare::addExceptionExtraction(MachineFunction &MF) {
// thenbb:
// %exn:i32 = extract_exception
// ... use exn ...
- unsigned ExnRefReg = Catch->getOperand(0).getReg();
+ unsigned ExnReg = Catch->getOperand(0).getReg();
auto *ThenMBB = MF.CreateMachineBasicBlock();
auto *ElseMBB = MF.CreateMachineBasicBlock();
MF.insert(std::next(MachineFunction::iterator(EHPad)), ElseMBB);
@@ -290,7 +290,7 @@ bool WebAssemblyLateEHPrepare::addExceptionExtraction(MachineFunction &MF) {
BuildMI(EHPad, DL, TII.get(WebAssembly::BR_ON_EXN))
.addMBB(ThenMBB)
.addExternalSymbol(CPPExnSymbol, WebAssemblyII::MO_SYMBOL_EVENT)
- .addReg(ExnRefReg);
+ .addReg(ExnReg);
BuildMI(EHPad, DL, TII.get(WebAssembly::BR)).addMBB(ElseMBB);
// When this is a terminate pad with __clang_call_terminate() call, we don't
OpenPOWER on IntegriCloud