diff options
Diffstat (limited to 'lib/StaticAnalyzer/Core/MemRegion.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Core/MemRegion.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/StaticAnalyzer/Core/MemRegion.cpp b/lib/StaticAnalyzer/Core/MemRegion.cpp index da34a79968..7c66739558 100644 --- a/lib/StaticAnalyzer/Core/MemRegion.cpp +++ b/lib/StaticAnalyzer/Core/MemRegion.cpp @@ -1168,12 +1168,8 @@ RegionOffset MemRegion::getAsOffset() const { R = FR->getSuperRegion(); const RecordDecl *RD = FR->getDecl()->getParent(); - if (/*RD->isUnion() || */!RD->isCompleteDefinition()) { + if (!RD->isCompleteDefinition()) { // We cannot compute offset for incomplete type. - // For unions, we could treat everything as offset 0, but we'd rather - // treat each field as a symbolic offset so they aren't stored on top - // of each other, since we depend on things in typed regions actually - // matching their types. SymbolicOffsetBase = R; } |