From 5c76ae28940b91d358186c0afccad1fd7ac8a13e Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Sun, 8 Jun 2025 09:16:57 +0200 Subject: [Clang] Support constexpr asm at global scope. (#143268) I previously failed to realize this feature existed... Fixes #137459 Fixes #143242 --- clang/lib/CodeGen/CodeGenModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') 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(D); - getModule().appendModuleInlineAsm(AD->getAsmString()->getString()); + getModule().appendModuleInlineAsm(AD->getAsmString()); break; } -- cgit v1.1