[clang] [DXIL] Don't generate per-variable guards for DirectX (PR #106096)
Greg Roth via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 28 13:30:16 PDT 2024
================
@@ -94,6 +94,13 @@ class LLVM_LIBRARY_VISIBILITY DirectXTargetInfo : public TargetInfo {
BuiltinVaListKind getBuiltinVaListKind() const override {
return TargetInfo::VoidPtrBuiltinVaList;
}
+
+ void adjust(DiagnosticsEngine &Diags, LangOptions &Opts) override {
----------------
pow2clk wrote:
I'm glad you asked! That's a bug I forgot to file. I think SPIR-V should exclude these as well. However, it uses the Itanium ABI which generates completely different protections. It was a non-trivial amount of additional work that wouldn't share anything with what I did here and this was meant to be an incidental to make testing easier, so I left it out.
https://github.com/llvm/llvm-project/pull/106096
More information about the cfe-commits
mailing list