================ @@ -151,10 +153,13 @@ SValBuilder::getRegionValueSymbolVal(const TypedValueRegion *region) { return nonloc::SymbolVal(sym); } -DefinedOrUnknownSVal SValBuilder::conjureSymbolVal(const void *SymbolTag, - const Expr *Ex, - const LocationContext *LCtx, - unsigned Count) { +/// When using this overload, the \p elemRef provided must be a \p CFGStmt. +DefinedOrUnknownSVal +SValBuilder::conjureSymbolVal(const void *SymbolTag, + const CFGBlock::ConstCFGElementRef elemRef, + const LocationContext *LCtx, unsigned Count) { + const Expr *Ex = cast<Expr>(elemRef->getAs<CFGStmt>()->getStmt()); ---------------- isuckatcs wrote:
```suggestion const Expr *Ex = dyn_cast<Expr>(elemRef->getAs<CFGStmt>()->getStmt()); ``` https://github.com/llvm/llvm-project/pull/128251 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits