[PATCH] D132421: [HLSL] Support PCH for cc1 mode
Xiang Li via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 9 11:45:26 PDT 2022
python3kgae marked an inline comment as done.
python3kgae added inline comments.
================
Comment at: clang/lib/Frontend/FrontendAction.cpp:1036
+ // Only add HLSLSema when not in MultiSource.
+ if (!MultiSource->HasSource<ExternalSemaSource>())
+ MultiSource->AddSource(HLSLSema.get());
----------------
beanz wrote:
> This seems off. The multi source should always have at least two external sema sources.
>
> Is there any situation where the HLSL sema would already be added?
Remove. I thought BeginSourceFile would reuse the same ExternalSource.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132421/new/
https://reviews.llvm.org/D132421
More information about the cfe-commits
mailing list