[PATCH] D57476: [CodeGenObjC] Use an invoke instead of a call when calling `objc_alloc` or `objc_allocWithZone`

Erik Pilkington via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 30 14:51:23 PST 2019


erik.pilkington marked an inline comment as done.
erik.pilkington added inline comments.


================
Comment at: clang/test/CodeGenObjC/convert-messages-to-runtime-calls.m:43-44
+void check_invoke() {
+  // MSGS: {{call.*@objc_msgSend}}
+  // MSGS: {{call.*@objc_msgSend}}
+  // CALLS: {{invoke.*@objc_alloc}}
----------------
er, these should be `invokes` too. Looks like this was just happening to work out because the SSA value was named %call in asserts mode. Updating the diff...


Repository:
  rC Clang

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

https://reviews.llvm.org/D57476





More information about the cfe-commits mailing list