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

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to