<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/138044>138044</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            ubsanitizer does not respect file-prefix-map in messages
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          apache-hb
      </td>
    </tr>
</table>

<pre>
    When compiling with `-fsanitize=undefined` the error messages do not reflect `-ffile-prefix-map`.
[reproducer](https://godbolt.org/z/fPE6cnveh)

```
where am i? '/beep/example.cpp'
/app/example.cpp:14:5: runtime error: store to null pointer of type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /app/example.cpp:14:5 
```

lines 2 and 3 should contain `/beep/example.cpp` rather than `/app/example.cpp`
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx8kk-L4zgQxT9N-VIkyOU_SQ4-uOn1rWHZpln2KFvlSIssCUlO__n0g9PpHsgMAwZDleu9quefTMmcHXMHzQM0j4Vcs_axk0FOmnd6LEav3rt_NTuc_BKMNe6MryZrhFbs5iSdyeaDoXpcneLZOFbQCsyakWP0ERdOSZ45ofLofMbIs-Upf47PxvIuRJ7N226RAVqxB9FD8xA5RK_WiSM0j0BHnXNIUPVAA9Bw9mr0Nu99PAMNH0DD_Pdf7eQurIFOm4LooRW3R_SvmiOjXNBANSDQAWgYmQPQwG9yCZb3UwhbXWwOMtx3qr6soeobqHqMq8tmuZ23FVL2kTF7dKu1GLxxmSP6GfN74M3NuPyp_fzy9NT_89829PKV1gNreTE-Pt-SvEp-Z7kbb2384154dzCI3hrHCQmlU1hh0n61CifvsjRuC__3EbQCo8yaI2Ytv7771bcVheoqdapOsuCuPNStaMqmEoXupBolzaKujodDo8aZFREdTg2XE1NZc2E6EtSIuhJE5bERe8FN2ZbHU6vq8jCVJdSCF2ns3trLsv3jwqS0cldWR1HXhZUj23TllcjxK167QLThG7ttaDeu5wS1sCbl9FMmm2y5W8cvaCMqz-lGZQoblXdAonHfABdrtN0dhybrddxPfgEaNpvbaxei_5-nDDRcl0tAw237S0c_AgAA__-1PRoA">