[llvm] r352133 - [GlobalISel][AArch64] Avoid unused variable warning for variable only used in assert
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 24 15:45:07 PST 2019
Author: d0k
Date: Thu Jan 24 15:45:07 2019
New Revision: 352133
URL: http://llvm.org/viewvc/llvm-project?rev=352133&view=rev
Log:
[GlobalISel][AArch64] Avoid unused variable warning for variable only used in assert
Modified:
llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp
Modified: llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp?rev=352133&r1=352132&r2=352133&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64InstructionSelector.cpp Thu Jan 24 15:45:07 2019
@@ -1802,6 +1802,7 @@ bool AArch64InstructionSelector::selectU
unsigned SrcReg = I.getOperand(NumElts).getReg();
const LLT NarrowTy = MRI.getType(I.getOperand(0).getReg());
const LLT WideTy = MRI.getType(SrcReg);
+ (void)WideTy;
assert(WideTy.isVector() && "can only unmerge from vector types!");
assert(WideTy.getSizeInBits() > NarrowTy.getSizeInBits() &&
"source register size too small!");
More information about the llvm-commits
mailing list