[PATCH] D64595: [Debuginfo][SROA] Need to handle dbg.value in SROA pass.

Alexey Lapshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 19 14:19:00 PDT 2019


avl marked an inline comment as done.
avl added inline comments.


================
Comment at: llvm/lib/Transforms/Utils/Local.cpp:1386
+static bool isStructure(AllocaInst *AI) {
+  return AI->getAllocatedType() && AI->getAllocatedType()->isStructTy();
+}
----------------
rnk wrote:
> Surely getAllocatedType can never return null?
I did not get it... if AI->getAllocatedType() would be null then isStructure() would be false.


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

https://reviews.llvm.org/D64595





More information about the llvm-commits mailing list