[llvm] r257728 - Fix Release build warning.
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 13 16:55:51 PST 2016
Author: reames
Date: Wed Jan 13 18:55:51 2016
New Revision: 257728
URL: http://llvm.org/viewvc/llvm-project?rev=257728&view=rev
Log:
Fix Release build warning.
A value used only in an assert. Again.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp?rev=257728&r1=257727&r2=257728&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp Wed Jan 13 18:55:51 2016
@@ -5063,6 +5063,7 @@ SelectionDAGBuilder::visitIntrinsicCall(
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");
More information about the llvm-commits
mailing list