Skip to content
Snippets Groups Projects
Commit 3a3c0fd2 authored by Zhongxing Xu's avatar Zhongxing Xu
Browse files

CXXBaseObjectRegion is like FieldRegion. Need to blast through it when

getting the base region. This makes the RemoveDeadBindings() correct.

llvm-svn: 123375
parent 0d87e0c6
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
// 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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment