[llvm] r365612 - Fix "result of 32-bit shift implicitly converted to 64 bits" warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 10 03:34:44 PDT 2019
Author: rksimon
Date: Wed Jul 10 03:34:44 2019
New Revision: 365612
URL: http://llvm.org/viewvc/llvm-project?rev=365612&view=rev
Log:
Fix "result of 32-bit shift implicitly converted to 64 bits" warning. NFCI.
Modified:
llvm/trunk/lib/Target/AArch64/AArch64AsmPrinter.cpp
Modified: llvm/trunk/lib/Target/AArch64/AArch64AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64AsmPrinter.cpp?rev=365612&r1=365611&r2=365612&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64AsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64AsmPrinter.cpp Wed Jul 10 03:34:44 2019
@@ -335,7 +335,7 @@ void AArch64AsmPrinter::EmitHwasanMemacc
.addReg(Reg)
.addImm(AArch64_AM::encodeLogicalImmediate(0xf, 64)),
*STI);
- size_t Size = 1 << (AccessInfo & 0xf);
+ unsigned Size = 1 << (AccessInfo & 0xf);
if (Size != 1)
OutStreamer->EmitInstruction(MCInstBuilder(AArch64::ADDXri)
.addReg(AArch64::X17)
More information about the llvm-commits
mailing list