[llvm] r181689 - Suppress GCC compiler warnings in release builds about variables that are only
Duncan Sands
baldrick at free.fr
Mon May 13 00:50:47 PDT 2013
Author: baldrick
Date: Mon May 13 02:50:47 2013
New Revision: 181689
URL: http://llvm.org/viewvc/llvm-project?rev=181689&view=rev
Log:
Suppress GCC compiler warnings in release builds about variables that are only
read in asserts.
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonNewValueJump.cpp
llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp
llvm/trunk/lib/Transforms/Vectorize/VecUtils.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonNewValueJump.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonNewValueJump.cpp?rev=181689&r1=181688&r2=181689&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonNewValueJump.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonNewValueJump.cpp Mon May 13 02:50:47 2013
@@ -631,6 +631,7 @@ bool HexagonNewValueJump::runOnMachineFu
.addMBB(jmpTarget);
assert(NewMI && "New Value Jump Instruction Not created!");
+ (void)NewMI;
if (cmpInstr->getOperand(0).isReg() &&
cmpInstr->getOperand(0).isKill())
cmpInstr->getOperand(0).setIsKill(false);
Modified: llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp?rev=181689&r1=181688&r2=181689&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp (original)
+++ llvm/trunk/lib/Target/X86/AsmParser/X86AsmParser.cpp Mon May 13 02:50:47 2013
@@ -1196,6 +1196,7 @@ RewriteIntelBracExpression(SmallVectorIm
}
}
assert (Found && "Unable to rewrite ImmDisp.");
+ (void)Found;
} else {
// We have a symbolic and an immediate displacement, but no displacement
// before the bracketed expression. Put the immediate displacement
Modified: llvm/trunk/lib/Transforms/Vectorize/VecUtils.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/VecUtils.cpp?rev=181689&r1=181688&r2=181689&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/VecUtils.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/VecUtils.cpp Mon May 13 02:50:47 2013
@@ -639,6 +639,7 @@ Value *BoUpSLP::vectorizeTree(ArrayRef<V
Replaced = true;
}
assert(Replaced && "Must replace at least one outside user");
+ (void)Replaced;
}
// We moved some instructions around. We have to number them again
More information about the llvm-commits
mailing list