// Binding directly to a symbolic region should be treated as binding
// to element 0.
QualType T = SR->getSymbol()->getType(getContext());
- T = cast<PointerType>(T)->getPointeeType();
+ T = T->getAs<PointerType>()->getPointeeType();
R = GetElementZeroRegion(SR, T);
}
// <rdar://problem/7249340> - Allow binding of values to symbolic regions.
// This test case shows how RegionStore tracks the value bound to 'x'
// after the assignment.
-void rdar_7249340(int *x) {
+typedef int* ptr_rdar_7249340;
+void rdar_7249340(ptr_rdar_7249340 x) {
*x = 1;
if (*x)
return;