It wasn't taking into account that QueryingAA was a pointer.
DepClassTy DepClass, bool ForceUpdate = false) {
#ifdef EXPENSIVE_CHECKS
// Don't allow callbase information to leak.
- if (auto CBContext = IRP.getCallBaseContext()) {
+ if (auto *CBContext = IRP.getCallBaseContext()) {
assert(
((CBContext->getCalledFunction() == IRP.getAnchorScope() ||
- QueryingAA ||
- !QueryingAA.getIRPosition().isAnyCallSitePosition())) &&
+ !QueryingAA ||
+ !QueryingAA->getIRPosition().isAnyCallSitePosition())) &&
"non callsite positions are not allowed to propagate CallBaseContext "
"across functions");
}