[llvm] r355387 - [WebAssembly] Rename a variable in LateEHPrepare (NFC)
Heejin Ahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 5 03:11:34 PST 2019
Author: aheejin
Date: Tue Mar 5 03:11:34 2019
New Revision: 355387
URL: http://llvm.org/viewvc/llvm-project?rev=355387&view=rev
Log:
[WebAssembly] Rename a variable in LateEHPrepare (NFC)
Modified:
llvm/trunk/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp
Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp?rev=355387&r1=355386&r2=355387&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp Tue Mar 5 03:11:34 2019
@@ -275,7 +275,7 @@ bool WebAssemblyLateEHPrepare::addExcept
// 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::addExcept
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
More information about the llvm-commits
mailing list