Skip to content

Commit 3e27dc8

Browse files
committed
Handle mark_dependence in ConstExpr
1 parent 50f8829 commit 3e27dc8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/SILOptimizer/Utils/ConstExpr.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,9 @@ SymbolicValue ConstExprFunctionState::computeConstantValue(SILValue value) {
528528
if (auto *convertEscapeInst = dyn_cast<ConvertEscapeToNoEscapeInst>(value))
529529
return getConstantValue(convertEscapeInst->getOperand());
530530

531+
if (auto *mdi = dyn_cast<MarkDependenceInst>(value))
532+
return getConstantValue(mdi->getValue());
533+
531534
LLVM_DEBUG(llvm::dbgs() << "ConstExpr Unknown simple: " << *value << "\n");
532535

533536
// Otherwise, we don't know how to handle this.

0 commit comments

Comments
 (0)