diff options
author | Vassil Vassilev <v.g.vassilev@gmail.com> | 2017-04-27 16:58:33 +0000 |
---|---|---|
committer | Vassil Vassilev <v.g.vassilev@gmail.com> | 2017-04-27 16:58:33 +0000 |
commit | 2b676cfa55d0684e5323ce31e29c64d117740bfd (patch) | |
tree | 970c1bc1e47ec5c485d16653ce83711b73209093 /clang/lib/CodeGen/CGStmtOpenMP.cpp | |
parent | c1db8cf9c1ddf2a113312b81e467fcd5b6f30194 (diff) | |
download | bcm5719-llvm-2b676cfa55d0684e5323ce31e29c64d117740bfd.tar.gz bcm5719-llvm-2b676cfa55d0684e5323ce31e29c64d117740bfd.zip |
Remove leaking UnknownPragmaHandlers right after we are done with them.
The UnknownPragmaHandlers added by DoPrintPreprocessedInput conflict with the
real PragmaHandlers from clang::Parser because they try to handle the same
#pragma directives. This makes it impossible to use a Preprocessor (that was
previously passed to DoPrintPreprocessedInput), as an Preprocessor for a
clang::Parser instance which is what we currently do in cling.
This patch removes the added UnknownPragmaHandler to avoid conflicts these
conflicts and leave the PragmaHandlers of the Preprocessors in a the same state
as before calling DoPrintPreprocessedInput.
Patch by Raphael Isemann (D32486)!
llvm-svn: 301563
Diffstat (limited to 'clang/lib/CodeGen/CGStmtOpenMP.cpp')
0 files changed, 0 insertions, 0 deletions