Skip to content

Commit

Permalink
Suppress GCC compiler warnings in release builds about variables that…
Browse files Browse the repository at this point in the history
… are only

read in asserts.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181689 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
CunningBaldrick committed May 13, 2013
1 parent 985eb90 commit b99052c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/Target/Hexagon/HexagonNewValueJump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,7 @@ bool HexagonNewValueJump::runOnMachineFunction(MachineFunction &MF) {
.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);
Expand Down
1 change: 1 addition & 0 deletions lib/Target/X86/AsmParser/X86AsmParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1196,6 +1196,7 @@ RewriteIntelBracExpression(SmallVectorImpl<AsmRewrite> *AsmRewrites,
}
}
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
Expand Down
1 change: 1 addition & 0 deletions lib/Transforms/Vectorize/VecUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ Value *BoUpSLP::vectorizeTree(ArrayRef<Value *> VL, int VF) {
Replaced = true;
}
assert(Replaced && "Must replace at least one outside user");
(void)Replaced;
}

// We moved some instructions around. We have to number them again
Expand Down

0 comments on commit b99052c

Please sign in to comment.