Fix Release build warning.

A value used only in an assert.  Again.

llvm-svn: 257728
This commit is contained in:
Philip Reames 2016-01-14 00:55:51 +00:00
parent 588fdd8394
commit 054123550f
1 changed files with 1 additions and 0 deletions

View File

@ -5063,6 +5063,7 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) {
case Intrinsic::gcroot: {
MachineFunction &MF = DAG.getMachineFunction();
const Function *F = MF.getFunction();
(void)F;
assert(F->hasGC() &&
"only valid in functions with gc specified, enforced by Verifier");
assert(GFI && "implied by previous");