From: Benjamin Kramer Date: Thu, 24 Jan 2019 23:45:07 +0000 (+0000) Subject: [GlobalISel][AArch64] Avoid unused variable warning for variable only used in assert X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6042831b761a7fa0120ce93caa8bf119ba653189;p=llvm [GlobalISel][AArch64] Avoid unused variable warning for variable only used in assert git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352133 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/AArch64/AArch64InstructionSelector.cpp b/lib/Target/AArch64/AArch64InstructionSelector.cpp index 0a98e7d13e3..7930680f696 100644 --- a/lib/Target/AArch64/AArch64InstructionSelector.cpp +++ b/lib/Target/AArch64/AArch64InstructionSelector.cpp @@ -1802,6 +1802,7 @@ bool AArch64InstructionSelector::selectUnmergeValues( 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!");