[PATCH] D66064: Use Register over unsigned in LateEHPrepare (NFC)

Heejin Ahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 13 10:35:01 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL368727: Use Register over unsigned in LateEHPrepare (NFC) (authored by aheejin, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D66064?vs=214554&id=214874#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D66064/new/

https://reviews.llvm.org/D66064

Files:
  llvm/trunk/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp


Index: llvm/trunk/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp
===================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp
@@ -340,7 +340,7 @@
               WebAssembly::ClangCallTerminateFn);
       assert(ClangCallTerminateFn &&
              "There is no __clang_call_terminate() function");
-      unsigned Reg = MRI.createVirtualRegister(&WebAssembly::I32RegClass);
+      Register Reg = MRI.createVirtualRegister(&WebAssembly::I32RegClass);
       BuildMI(ElseMBB, DL, TII.get(WebAssembly::CONST_I32), Reg).addImm(0);
       BuildMI(ElseMBB, DL, TII.get(WebAssembly::CALL_VOID))
           .addGlobalAddress(ClangCallTerminateFn)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66064.214874.patch
Type: text/x-patch
Size: 786 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190813/57b2bda8/attachment.bin>


More information about the llvm-commits mailing list