65
65
/// Implicit casts (ex: void* -> char*) can turn Symbolic region into Element
66
66
/// region. If that is the case, gets the underlining region.
68
70
// FIXME: should we consider SymbolRef wrapped in CodeTextRegion?
69
71
if (Optional<nonloc::LocAsInteger> X = getAs<nonloc::LocAsInteger>())
70
72
return X->getLoc().getAsLocSymbol();
72
74
if (Optional<loc::MemRegionVal> X = getAs<loc::MemRegionVal>()) {
75
79
return SymR->getSymbol();