summaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorIlya Biryukov <ibiryukov@google.com>2017-09-12 08:35:57 +0000
committerIlya Biryukov <ibiryukov@google.com>2017-09-12 08:35:57 +0000
commit622d54d5a584280c680148ffa1a1ba6b8a3772f8 (patch)
treeee785a8bf4a5da39216b41f8d3983382d5e8d0c2 /lib/CodeGen
parent2d3f7520fc0be56b082353cd044edbaff0e8cd25 (diff)
downloadclang-622d54d5a584280c680148ffa1a1ba6b8a3772f8.tar.gz
Fix recording preamble's conditional stack in skipped PP branches.
Summary: This fixes PR34547. `Lexer::LexEndOfFile` handles recording of ConditionalStack for preamble and reporting errors about unmatched conditionalal PP directives. However, SkipExcludedConditionalBlock contianed duplicated logic for reporting errors and clearing ConditionalStack, but not for preamble recording. This fix removes error reporting logic from `SkipExcludedConditionalBlock`, unmatched PP conditionals are now reported inside `Lexer::LexEndOfFile`. Reviewers: erikjv, klimek, bkramer Reviewed By: erikjv Subscribers: nik, cfe-commits Differential Revision: https://reviews.llvm.org/D37700 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@313014 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
0 files changed, 0 insertions, 0 deletions