[PATCH] D132421: [NFC] [HLSL] Add HLSLExternalSemaSource as ExternalSemaSource instead of ASTContext::ExternalSource.
Xiang Li via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 22 17:01:42 PDT 2022
python3kgae created this revision.
python3kgae added reviewers: beanz, pow2clk, bogner.
Herald added a subscriber: Anastasia.
Herald added a project: All.
python3kgae requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Use CompilerInstance::setExternalSemaSource to add HLSLExternalSemaSource.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D132421
Files:
clang/lib/Frontend/FrontendAction.cpp
Index: clang/lib/Frontend/FrontendAction.cpp
===================================================================
--- clang/lib/Frontend/FrontendAction.cpp
+++ clang/lib/Frontend/FrontendAction.cpp
@@ -1020,7 +1020,7 @@
if (CI.getLangOpts().HLSL && CI.hasASTContext()) {
IntrusiveRefCntPtr<ExternalASTSource> HLSLSema(
new HLSLExternalSemaSource());
- CI.getASTContext().setExternalSource(HLSLSema);
+ CI.setExternalSemaSource(HLSLSema);
}
FailureCleanup.release();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132421.454653.patch
Type: text/x-patch
Size: 496 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220823/c3e42323/attachment.bin>
More information about the cfe-commits
mailing list