| author | |
| committer | |
| log | 1ab84a27d374e666463c606dc1cd1c4972b52a74 |
| tree | f8bba378ad0ccf449d24fc143abea2be66fe861b |
| parent | 3e8fd245473a6e532fa4f9b42c51bd8257c15b3c |
Thanks to Mason Remaley for testing the fix.1 files changed, 1 insertions(+), 1 deletions(-)
src/translate_c.cpp+1-1| ... | ... | @@ -138,7 +138,7 @@ static void emit_warning(Context *c, const SourceLocation &sl, const char *forma |
| 138 | 138 | Buf *msg = buf_vprintf(format, ap); |
| 139 | 139 | va_end(ap); |
| 140 | 140 | |
| 141 | StringRef filename = c->source_manager->getFilename(sl); | |
| 141 | StringRef filename = c->source_manager->getFilename(c->source_manager->getSpellingLoc(sl)); | |
| 142 | 142 | const char *filename_bytes = (const char *)filename.bytes_begin(); |
| 143 | 143 | Buf *path; |
| 144 | 144 | if (filename_bytes) { |