summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-12-15 22:53:33 +0000
committerMatthias Braun <matze@braunis.de>2017-12-15 22:53:33 +0000
commit042fed54fb00272788ea787236fc6c6dda280655 (patch)
tree11130a198f1cb20111eda3c0f8625b0b01ce3cf2
parentf1caa2833f5052c419faa0007a38e0b242d5b034 (diff)
downloadbcm5719-llvm-042fed54fb00272788ea787236fc6c6dda280655.tar.gz
bcm5719-llvm-042fed54fb00272788ea787236fc6c6dda280655.zip
Fix unused variable in non-assert builds
llvm-svn: 320885
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 466945b8b4f..71cb8cb78f6 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -5747,8 +5747,7 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) {
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();
OpenPOWER on IntegriCloud