[PATCH] D66064: Use Register over unsigned in LateEHPrepare (NFC)
Heejin Ahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 11 01:32:02 PDT 2019
aheejin created this revision.
aheejin added a reviewer: dsanders.
Herald added subscribers: llvm-commits, hiraditya, jgravelle-google, sbc100, dschuff.
Herald added a project: LLVM.
While D65962 <https://reviews.llvm.org/D65962> is pending for review, I landed D65475 <https://reviews.llvm.org/D65475> that added one more
use of `unsigned`. Changed it to `Register`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D66064
Files:
llvm/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp
Index: llvm/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp
===================================================================
--- llvm/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp
+++ llvm/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.214554.patch
Type: text/x-patch
Size: 768 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190811/5c1fc6b5/attachment.bin>
More information about the llvm-commits
mailing list