http://llvm.org/bugs/show_bug.cgi?id=22694

            Bug ID: 22694
           Summary: Sanitizer blacklist broken with preprocessed source
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

1.ii:

# 1 "1.cc"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 344 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "1.cc" 2
void f() {}

blacklist:

src:*1.cc

$ clang++ -fsanitize=address -fsanitize-blacklist=blacklist 1.ii -S -emit-llvm
-o - | grep -A 1 Function\ Attrs
; Function Attrs: nounwind sanitize_address uwtable
define void @_Z1fv() #0 {

Blacklist did not apply. The code in SanitizerBlacklist.cpp tried to match
"1.ii" against the blacklist.

It looks like we need to use getPresumedLoc instead of getFileLoc, but it may
not be that simple (will we lose macro expansion then?).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to