summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/StaticAnalyzer/Core/MemRegion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/MemRegion.cpp b/clang/lib/StaticAnalyzer/Core/MemRegion.cpp
index 62e602a7e1e..4f33bad4928 100644
--- a/clang/lib/StaticAnalyzer/Core/MemRegion.cpp
+++ b/clang/lib/StaticAnalyzer/Core/MemRegion.cpp
@@ -1111,7 +1111,7 @@ RegionOffset MemRegion::getAsOffset() const {
}
const CXXRecordDecl *Child = Ty->getAsCXXRecordDecl();
- if (!Child) {
+ if (!Child || !Child->isCompleteDefinition()) {
// We cannot compute the offset of the base class.
SymbolicOffsetBase = R;
}
OpenPOWER on IntegriCloud