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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits