diff options
author | Corentin Jabot <corentinjabot@gmail.com> | 2025-06-08 09:16:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-08 09:16:57 +0200 |
commit | 5c76ae28940b91d358186c0afccad1fd7ac8a13e (patch) | |
tree | 99feb632ed57b018538e6e910d461ddd98245bd6 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 39064519cb65b5248fcb27b2fd9fa4397d518331 (diff) | |
download | llvm-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.cpp | 2 |
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; } |