There is no point in assigning void just to crash on it in the next line
Differential Revision: https://reviews.llvm.org/D43802
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326234
91177308-0d34-0410-b5e6-
96231b3b80d8
T = TR->getLocationType()->getPointeeType();
else if (const SymbolicRegion *SR = dyn_cast<SymbolicRegion>(MR))
T = SR->getSymbol()->getType()->getPointeeType();
- else if (isa<AllocaRegion>(MR))
- T = Ctx.VoidTy;
}
assert(!T.isNull() && "Unable to auto-detect binding type!");
assert(!T->isVoidType() && "Attempting to dereference a void pointer!");