[llvm] r320885 - Fix unused variable in non-assert builds
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 15 14:53:33 PST 2017
Author: matze
Date: Fri Dec 15 14:53:33 2017
New Revision: 320885
URL: http://llvm.org/viewvc/llvm-project?rev=320885&view=rev
Log:
Fix unused variable in non-assert builds
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=320885&r1=320884&r2=320885&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp Fri Dec 15 14:53:33 2017
@@ -5747,8 +5747,7 @@ SelectionDAGBuilder::visitIntrinsicCall(
getValue(I.getArgOperand(0))));
return nullptr;
case Intrinsic::gcroot: {
- MachineFunction &MF = DAG.getMachineFunction();
- assert(MF.getFunction().hasGC() &&
+ assert(DAG.getMachineFunction().getFunction().hasGC() &&
"only valid in functions with gc specified, enforced by Verifier");
assert(GFI && "implied by previous");
const Value *Alloca = I.getArgOperand(0)->stripPointerCasts();
More information about the llvm-commits
mailing list