Skip to content

Commit

Permalink
[SDAG] Fix release build
Browse files Browse the repository at this point in the history
This variable was only declared in debug builds, but is needed
in release builds as well.
  • Loading branch information
nikic committed Jul 18, 2022
1 parent a586c15 commit 56b4b6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
Expand Up @@ -1226,12 +1226,12 @@ void SelectionDAGBuilder::visitGCResult(const GCResultInst &CI) {
}

void SelectionDAGBuilder::visitGCRelocate(const GCRelocateInst &Relocate) {
const Value *Statepoint = Relocate.getStatepoint();
#ifndef NDEBUG
// Consistency check
// We skip this check for relocates not in the same basic block as their
// statepoint. It would be too expensive to preserve validation info through
// different basic blocks.
const Value *Statepoint = Relocate.getStatepoint();
assert((isa<GCStatepointInst>(Statepoint) || isa<UndefValue>(Statepoint)) &&
"GetStatepoint must return one of two types");
if (isa<UndefValue>(Statepoint))
Expand Down

0 comments on commit 56b4b6e

Please sign in to comment.