[PATCH] D110257: [CFE][Codegen] Make sure to maintain the contiguity of all the static allocas

Alexander Richardson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 12 00:47:11 PDT 2021


arichardson added inline comments.


================
Comment at: clang/lib/CodeGen/CGExpr.cpp:115
+    if (AllocaInsertedAtAllocaInsertPt)
+      AllocaAddrSpaceInsertPt = dyn_cast<llvm::Instruction>(V)->getIterator();
   }
----------------
Shouldn't this use `cast` instead?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D110257



More information about the cfe-commits mailing list