================
@@ -15460,6 +15461,108 @@ void Sema::CheckThreadLocalForLargeAlignment(VarDecl
*VD) {
}
}
+/// Process a variable definition whose mangled name may be listed in
+/// '-mloadtime-comment-vars=': attach an implicit attribute to supported
+/// string variables so CodeGen preserves them as loadtime identifying
+/// strings, and warn when a named variable cannot be preserved.
+static void processForLoadTimeCommentVar(Sema &S, VarDecl *VD) {
----------------
AaronBallman wrote:
Is `VarDecl` correct? Consider:
```
int array[3] = { 1, 2, 3 };
auto [a, b, c] = array;
```
`array` is a `VarDecl` but the binding declarations are `ValueDecl`s but they
still get mangled: https://godbolt.org/z/qc36obhf8
https://github.com/llvm/llvm-project/pull/187986
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits