[PATCH] D141152: AMDGPU: Fix opaque pointer and other bugs in printf of constant strings

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 6 13:54:37 PST 2023


nikic added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp:425
+      } else if (isa<PointerType>(ArgType)) {
         if (shouldPrintAsStr(OpConvSpecifiers[ArgCount - 1], ArgType)) {
+          APInt StrOffset(TD->getIndexTypeSizeInBits(ArgType), 0);
----------------
Can you replace this code with getConstantStringInfo()?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D141152/new/

https://reviews.llvm.org/D141152



More information about the llvm-commits mailing list