<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Sanitizer blacklist broken with preprocessed source"
   href="http://llvm.org/bugs/show_bug.cgi?id=22694">22694</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Sanitizer blacklist broken with preprocessed source
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>compiler-rt
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>compiler-rt
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>eugeni.stepanov@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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?).</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>