[PATCH] D122431: Basic support for posix_memalign / __builtin_object_size interaction

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 25 01:50:58 PDT 2022


nikic added inline comments.


================
Comment at: llvm/lib/Analysis/MemoryBuiltins.cpp:913
+      }
+      auto SizeOffset = compute(SI->getOperand(0));
+      SizeOffsets.push_back(SizeOffset);
----------------
To double check, does this work when a non-pointer type is stored? You might want to add a test that stores an i32 or so into a bitcasted pointer.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D122431



More information about the llvm-commits mailing list