diff options
author | Adrian Prantl <aprantl@apple.com> | 2016-10-24 18:23:51 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2016-10-24 18:23:51 +0000 |
commit | 28d2d281e759e1b44e7f4bec7bdf341404b008c1 (patch) | |
tree | 5600b8af04ecc2e323b3ec518d867c7d256bf5ac /clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp | |
parent | bc473621b8ca18d76f542bed84e89d143c9cd91e (diff) | |
download | bcm5719-llvm-28d2d281e759e1b44e7f4bec7bdf341404b008c1.tar.gz bcm5719-llvm-28d2d281e759e1b44e7f4bec7bdf341404b008c1.zip |
add-discriminators: Fix handling of lexical scopes.
This fixes a bug in the handling of lexical scopes, when more than one
scope is defined on the same line or functions are inlined into call
sites that are on the same line as the function definition. This
situation can easily happen in macro expansions.
The problem is solved by introducing a SmallDenseMap<DIScope *,
DILexicalBlockFile *, 1> that keeps track of all the different lexical
scopes that share a line/file location.
Fixes PR30681.
llvm-svn: 284998
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp')
0 files changed, 0 insertions, 0 deletions