]> granicus.if.org Git - llvm/commitdiff
[WebAssembly] Rename a variable in LateEHPrepare (NFC)
authorHeejin Ahn <aheejin@gmail.com>
Tue, 5 Mar 2019 11:11:34 +0000 (11:11 +0000)
committerHeejin Ahn <aheejin@gmail.com>
Tue, 5 Mar 2019 11:11:34 +0000 (11:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355387 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp

index 1c4f42cc26d635a6f604993a693b3e55170bb034..d4612b858891256e825b68fe53ed9084221fe5e7 100644 (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