summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2019-07-23 02:59:15 +0000
committerRichard Trieu <rtrieu@google.com>2019-07-23 02:59:15 +0000
commit81a5045cd6320641e4b8620b9f18d3b22da68016 (patch)
tree922005465280071303e310cb39b98f71217de34c /llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
parent99ccc3c9f144a5e7eaa33d7b698c1b2131313101 (diff)
downloadbcm5719-llvm-81a5045cd6320641e4b8620b9f18d3b22da68016.tar.gz
bcm5719-llvm-81a5045cd6320641e4b8620b9f18d3b22da68016.zip
Move variable out from debug only section.
MFI is no longer just needed for an assert. Move it out of the debug only section to allow non-assert builds to be able to find it. llvm-svn: 366773
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
index 12716dee34e..beacabe0c20 100644
--- a/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
@@ -378,7 +378,6 @@ spillIncomingStatepointValue(SDValue Incoming, SDValue Chain,
// We use TargetFrameIndex so that isel will not select it into LEA
Loc = Builder.DAG.getTargetFrameIndex(Index, Builder.getFrameIndexTy());
-#ifndef NDEBUG
// Right now we always allocate spill slots that are of the same
// size as the value we're about to spill (the size of spillee can
// vary since we spill vectors of pointers too). At some point we
@@ -387,7 +386,6 @@ spillIncomingStatepointValue(SDValue Incoming, SDValue Chain,
MachineFrameInfo &MFI = Builder.DAG.getMachineFunction().getFrameInfo();
assert((MFI.getObjectSize(Index) * 8) == Incoming.getValueSizeInBits() &&
"Bad spill: stack slot does not match!");
-#endif
// Note: Using the alignment of the spill slot (rather than the abi or
// preferred alignment) is required for correctness when dealing with spill
OpenPOWER on IntegriCloud