forked from OSchip/llvm-project
[SDAG] Fix release build
This variable was only declared in debug builds, but is needed in release builds as well.
This commit is contained in:
parent
a586c15bbb
commit
56b4b6e81b
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue