[WebAssembly] Rename a variable in LateEHPrepare (NFC)

llvm-svn: 355387
This commit is contained in:
Heejin Ahn 2019-03-05 11:11:34 +00:00
parent f509fe4655
commit c7397613d2
1 changed files with 2 additions and 2 deletions

View File

@ -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