[PATCH] D134548: [NVPTX] Fix a segfault for bitcasted calls with byval params

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 26 11:47:27 PDT 2022


nikic added inline comments.


================
Comment at: llvm/lib/Target/NVPTX/NVPTXUtilities.cpp:349
+  // Function?
+  return dyn_cast<Function>(CalleeV);
+}
----------------
The whole function can be reduced to `dyn_cast<Function>(CB->getCalledOperand()->stripPointerCasts())`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D134548



More information about the llvm-commits mailing list