[clang] Fix Lambda Mangling in Namespace-Scope Variable Initializers. (PR #159115)
Zahira Ammarguellat via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 17 12:08:30 PDT 2025
================
@@ -47,7 +47,19 @@ int main() {
// Make sure the following 3 are the same between the host and device compile.
// Note that these are NOT the same value as each other, they differ by the
// signature.
- // CHECK: private unnamed_addr [[$ADDRSPACE]]constant [17 x i8] c"_ZTSZ4mainEUlvE_\00"
- // CHECK: private unnamed_addr [[$ADDRSPACE]]constant [17 x i8] c"_ZTSZ4mainEUliE_\00"
- // CHECK: private unnamed_addr [[$ADDRSPACE]]constant [17 x i8] c"_ZTSZ4mainEUldE_\00"
+ // HOST: private unnamed_addr constant [17 x i8] c"_ZTSZ4mainEUlvE_\00"
+ // HOST: private unnamed_addr constant [17 x i8] c"_ZTSZ4mainEUliE_\00"
+ // HOST: private unnamed_addr constant [17 x i8] c"_ZTSZ4mainEUldE_\00"
----------------
zahiraam wrote:
Yes it does. And it generated the strings for both `device` and `host` compilation. The test is hitting the change made in `SemaLabda.cpp`. Now the context is non-null.
https://github.com/llvm/llvm-project/pull/159115
More information about the cfe-commits
mailing list