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();


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();
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to