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)
commitfa7a8569bba1927648b876d96a874c61e18444ef
tree0e59e320cf2981d09fc3870a76062c59edeaa46a
parent64313c94ae4e24f5b31238e923af6a900f5bbed0
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.

llvm-svn: 220403
clang/lib/Basic/SanitizerBlacklist.cpp
clang/test/CodeGen/address-safety-attr.cpp