skc7 wrote:

> Is it possible to add a test that generates this attribute from C/C++ code?

`CIRGenItaniumCXXABI::getVirtualFunctionPointer` now marks the virtual 
function-pointer load invariant under `-O1 -fstrict-vtable-pointers`, mirroring 
classic CodeGen (ItaniumCXXABI.cpp).
Added clang/test/CIR/CodeGen/vtable-load-invariant.cpp test for this.

https://github.com/llvm/llvm-project/pull/204283
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to