Skip to content

Commit 5b937e4

Browse files
author
git apple-llvm automerger
committed
Merge commit 'e036ba50a764' from llvm.org/main into next
2 parents 824a31c + e036ba5 commit 5b937e4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,8 @@ SDValue SelectionDAGBuilder::LowerAsSTATEPOINT(
715715
assert((GFI || SI.Bases.empty()) &&
716716
"No gc specified, so cannot relocate pointers!");
717717

718-
LLVM_DEBUG(dbgs() << "Lowering statepoint " << *SI.StatepointInstr << "\n");
718+
LLVM_DEBUG(if (SI.StatepointInstr) dbgs()
719+
<< "Lowering statepoint " << *SI.StatepointInstr << "\n");
719720
#ifndef NDEBUG
720721
for (const auto *Reloc : SI.GCRelocates)
721722
if (Reloc->getParent() == SI.StatepointInstr->getParent())
@@ -1156,6 +1157,7 @@ void SelectionDAGBuilder::LowerCallSiteWithDeoptBundleImpl(
11561157

11571158
// NB! The GC arguments are deliberately left empty.
11581159

1160+
LLVM_DEBUG(dbgs() << "Lowering call with deopt bundle " << *Call << "\n");
11591161
if (SDValue ReturnVal = LowerAsSTATEPOINT(SI)) {
11601162
ReturnVal = lowerRangeToAssertZExt(DAG, *Call, ReturnVal);
11611163
setValue(Call, ReturnVal);

0 commit comments

Comments
 (0)