aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-02-21 01:34:51 +0000
committerJordan Rose <jordan_rose@apple.com>2013-02-21 01:34:51 +0000
commitd1c7cf26ae622ed911ee6d746313dfbedcdfd012 (patch)
treed4f1c17a715495b82fea703688914dcc812e814a /clang/lib/Basic/SourceManager.cpp
parenta6db9339797e612cbd564be37a8356752c33d320 (diff)
downloadllvm-d1c7cf26ae622ed911ee6d746313dfbedcdfd012.zip
llvm-d1c7cf26ae622ed911ee6d746313dfbedcdfd012.tar.gz
llvm-d1c7cf26ae622ed911ee6d746313dfbedcdfd012.tar.bz2
[analyzer] Tighten up safety in the use of lazy bindings.
- When deciding if we can reuse a lazy binding, make sure to check if there are additional bindings in the sub-region. - When reading from a lazy binding, don't accidentally strip off casts or base object regions. This slows down lazy binding reading a bit but is necessary for type sanity when treating one class as another. A bit of minor refactoring allowed these two checks to be unified in a nice early-return-using helper function. <rdar://problem/13239840> llvm-svn: 175703
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions