forked from OSchip/llvm-project
CXXBaseObjectRegion is like FieldRegion. Need to blast through it when
getting the base region. This makes the RemoveDeadBindings() correct. llvm-svn: 123375
This commit is contained in:
parent
0d87e0c65b
commit
3a3c0fd2d1
|
@ -770,6 +770,7 @@ const MemRegion *MemRegion::getBaseRegion() const {
|
|||
case MemRegion::ElementRegionKind:
|
||||
case MemRegion::FieldRegionKind:
|
||||
case MemRegion::ObjCIvarRegionKind:
|
||||
case MemRegion::CXXBaseObjectRegionKind:
|
||||
R = cast<SubRegion>(R)->getSuperRegion();
|
||||
continue;
|
||||
default:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -analyze -analyzer-check-objc-mem -analyzer-store region -analyzer-inline-call -cfg-add-initializers -verify -analyzer-no-purge-dead %s
|
||||
// RUN: %clang_cc1 -analyze -analyzer-check-objc-mem -analyzer-store region -analyzer-inline-call -cfg-add-initializers -verify %s
|
||||
|
||||
class A {
|
||||
int x;
|
||||
|
|
Loading…
Reference in New Issue