[clang] [clang-tools-extra] Remove `StringLiteral` in favor of `StringRef` (PR #122366)
Sergei Barannikov via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 9 13:17:54 PST 2025
s-barannikov wrote:
> @s-barannikov
>
> > > * the `strlen` is NOT constant-evaluated on MSVC, even the latest version.
> >
> >
> > The godbolt link shows otherwise?
>
> This is what I see in godbolt - to me this loop looks like strlen:
>
> 
It is the body of the constructor. `xyz` function is below
```
StringRef xyz(void) PROC ; xyz, COMDAT
lea rax, OFFSET FLAT:`string'
mov DWORD PTR [rcx+8], 26
mov QWORD PTR [rcx], rax
mov rax, rcx
ret 0
StringRef xyz(void) ENDP ; xyz
```
https://github.com/llvm/llvm-project/pull/122366
More information about the cfe-commits
mailing list