]> granicus.if.org Git - clang/commit
SanitizerBlacklist: Use spelling location for blacklisting purposes.
authorAlexey Samsonov <vonosmas@gmail.com>
Wed, 22 Oct 2014 18:26:07 +0000 (18:26 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Wed, 22 Oct 2014 18:26:07 +0000 (18:26 +0000)
commitf3f44c370b79a67d152d720f334c435631e59adf
tree1f9dc13c72fc01c2d2fadd91df1552224d26308a
parente1f5149843bc2e307537c95dc23e84b564ca0be6
SanitizerBlacklist: Use spelling location for blacklisting purposes.

When SanitizerBlacklist decides if the SourceLocation is blacklisted,
we need to first turn it into a SpellingLoc before fetching the filename
and scanning "src:" entries. Otherwise we will fail to fecth the
correct filename for function definitions coming from macro expansion.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@220403 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/SanitizerBlacklist.cpp
test/CodeGen/address-safety-attr.cpp