https://github.com/DonatNagyE requested changes to this pull request.

As far as I see the code that you added doesn't check whether the global 
variable is a constant or not. Please add a check for this (examine the type of 
the declaration `decl`) and consider adding test cases which validate that this 
logic doesn't assign length values to non-constant global strings (because 
their actual content may be different from the string literal that was used to 
initialize them).

Also note that in general, the LLVM coding style uses CamelCased names for 
variables; however here I can accept lowerCamelCased names if you want to 
remain consistent with the surrounding legacy code.

https://github.com/llvm/llvm-project/pull/68368
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to