summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-02-01 19:49:57 +0000
committerJordan Rose <jordan_rose@apple.com>2013-02-01 19:49:57 +0000
commit49d5f8825d2e450f55c3d483487014ab464acff9 (patch)
tree38a4dd3fd56ffdd3292282705f4f50441b19a317 /clang/lib/Driver/Tools.cpp
parent9ee4bc1abc3ad27b6022c61440ecc00c8cff6705 (diff)
downloadbcm5719-llvm-49d5f8825d2e450f55c3d483487014ab464acff9.tar.gz
bcm5719-llvm-49d5f8825d2e450f55c3d483487014ab464acff9.zip
[analyzer] Reuse a LazyCompoundVal if its type matches the new region.
This allows us to keep from chaining LazyCompoundVals in cases like this: CGRect r = CGRectMake(0, 0, 640, 480); CGRect r2 = r; CGRect r3 = r2; Previously we only made this optimization if the struct did not begin with an aggregate member, to make sure that we weren't picking up an LCV for the first field of the struct. But since LazyCompoundVals are typed, we can make that inference directly by comparing types. This is a pure optimization; the test changes are to guard against possible future regressions. llvm-svn: 174211
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud