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 d8d6ceb6fa
commit 80c7fd234d

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");