diff options
| author | Pavel Labath <labath@google.com> | 2013-08-29 16:06:04 +0000 |
|---|---|---|
| committer | Pavel Labath <labath@google.com> | 2013-08-29 16:06:04 +0000 |
| commit | 3c114f704a882f6923d6107f22aab89ba3d0a6b5 (patch) | |
| tree | 18f56899298ca25072e723c1c9b3226a54b22e96 /lib/CodeGen/CodeGenFunction.cpp | |
| parent | b80aad8d30340cdd47ecb6a5bafe46cf5e47cfe9 (diff) | |
| download | clang-3c114f704a882f6923d6107f22aab89ba3d0a6b5.tar.gz clang-3c114f704a882f6923d6107f22aab89ba3d0a6b5.tar.bz2 clang-3c114f704a882f6923d6107f22aab89ba3d0a6b5.tar.xz | |
[analyzer] Fix handling of "empty" structs with base classes
Summary:
RegionStoreManager had an optimization which replaces references to empty
structs with UnknownVal. Unfortunately, this check didn't take into account
possible field members in base classes.
To address this, I changed this test to "is empty and has no base classes". I
don't consider it worth the trouble to go through base classes and check if all
of them are empty.
Reviewers: jordan_rose
CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1547
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189590 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
