[clang] [TBAA] Emit int TBAA metadata on FP math libcalls (PR #96025)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 24 23:33:52 PDT 2024
vfdff wrote:
> It report error **Access tag metadata must have either 4 or 5 operands** with CGM.getTBAATypeInfo(Context.IntTy)
>
> ```
> p MDHelper.createTBAAScalarTypeNode("int", RootMD)
> <0xaaaabe1f62a8> = !{!"int", <0xaaaabddc68f8>, i64 0} -- return a Type descriptors
> p CGF.CGM.getTBAATypeInfo(CGF.getContext().IntTy)
> <0xaaaabe0c93b8> = !{<0xaaaabddfd208>, i64 4, !"int"} -- Is it a new path-tbaa?
> ```
Oh, it works fine when I delete the option **-Xclang -new-struct-path-tbaa**
https://github.com/llvm/llvm-project/pull/96025
More information about the cfe-commits
mailing list