llvm.org GIT mirror llvm / 8aac5e9
[WebAssembly] Rename a variable in LateEHPrepare (NFC) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355387 91177308-0d34-0410-b5e6-96231b3b80d8 Heejin Ahn 7 months ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
274274 // thenbb:
275275 // %exn:i32 = extract_exception
276276 // ... use exn ...
277 unsigned ExnRefReg = Catch->getOperand(0).getReg();
277 unsigned ExnReg = Catch->getOperand(0).getReg();
278278 auto *ThenMBB = MF.CreateMachineBasicBlock();
279279 auto *ElseMBB = MF.CreateMachineBasicBlock();
280280 MF.insert(std::next(MachineFunction::iterator(EHPad)), ElseMBB);
289289 BuildMI(EHPad, DL, TII.get(WebAssembly::BR_ON_EXN))
290290 .addMBB(ThenMBB)
291291 .addExternalSymbol(CPPExnSymbol, WebAssemblyII::MO_SYMBOL_EVENT)
292 .addReg(ExnRefReg);
292 .addReg(ExnReg);
293293 BuildMI(EHPad, DL, TII.get(WebAssembly::BR)).addMBB(ElseMBB);
294294
295295 // When this is a terminate pad with __clang_call_terminate() call, we don't