diff options
author | Helena Kotas <hekotas@microsoft.com> | 2025-02-20 18:39:38 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-20 18:39:38 -0800 |
commit | 6e5f26bba87be02ea4c1220898031c441c2562fc (patch) | |
tree | 4c8f08b069bb85965d670e016c5930d0b09baba0 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 7c2ebe5dbb4d5cfae7670036394a6f23dcbe4bf7 (diff) | |
download | llvm-6e5f26bba87be02ea4c1220898031c441c2562fc.zip llvm-6e5f26bba87be02ea4c1220898031c441c2562fc.tar.gz llvm-6e5f26bba87be02ea4c1220898031c441c2562fc.tar.bz2 |
Revert "[HLSL] Implement default constant buffer `$Globals`" (#128112)
Reverts llvm/llvm-project#125807
Reverting this change because of failing tests.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 1b7d0ac..7924c32 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -5513,11 +5513,6 @@ void CodeGenModule::EmitGlobalVarDefinition(const VarDecl *D, if (getLangOpts().OpenCL && ASTTy->isSamplerT()) return; - // HLSL default buffer constants will be emitted during HLSLBufferDecl codegen - if (getLangOpts().HLSL && - D->getType().getAddressSpace() == LangAS::hlsl_constant) - return; - // If this is OpenMP device, check if it is legal to emit this global // normally. if (LangOpts.OpenMPIsTargetDevice && OpenMPRuntime && |