aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorCorentin Jabot <corentinjabot@gmail.com>2025-06-08 09:16:57 +0200
committerGitHub <noreply@github.com>2025-06-08 09:16:57 +0200
commit5c76ae28940b91d358186c0afccad1fd7ac8a13e (patch)
tree99feb632ed57b018538e6e910d461ddd98245bd6 /clang/lib/CodeGen/CodeGenModule.cpp
parent39064519cb65b5248fcb27b2fd9fa4397d518331 (diff)
downloadllvm-5c76ae28940b91d358186c0afccad1fd7ac8a13e.zip
llvm-5c76ae28940b91d358186c0afccad1fd7ac8a13e.tar.gz
llvm-5c76ae28940b91d358186c0afccad1fd7ac8a13e.tar.bz2
[Clang] Support constexpr asm at global scope. (#143268)
I previously failed to realize this feature existed... Fixes #137459 Fixes #143242
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index c005d33..16e49aa 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -7271,7 +7271,7 @@ void CodeGenModule::EmitTopLevelDecl(Decl *D) {
if (LangOpts.SYCLIsDevice)
break;
auto *AD = cast<FileScopeAsmDecl>(D);
- getModule().appendModuleInlineAsm(AD->getAsmString()->getString());
+ getModule().appendModuleInlineAsm(AD->getAsmString());
break;
}