summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorMichael Kruse <llvm-project@meinersbur.de>2021-11-05 00:03:26 -0500
committerMichael Kruse <llvm-project@meinersbur.de>2021-11-05 00:43:40 -0500
commit1606022fab2d90ed8ee6d15800ec1c2c293db20e (patch)
tree2a14e5c7176d5cb570d597efa9218e4b24c6e6cb /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent8f099d17a1bee857ada3c5af032cfcb559252024 (diff)
[Preprocessor] Fix newline before/after _Pragma.
The PragmaAssumeNonNullHandler (and maybe others) passes an invalid SourceLocation to its callback, hence PrintPreprocessedOutput does not know how many lines to insert between the previous token and the pragma and does nothing. With this patch we instead assume that the unknown token is on the same line as the previous such that we can call the procedure that also emits semantically significant whitespace. Fixes bug reported here: https://reviews.llvm.org/D104601#3105044
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions