[PATCH] D41698: [DebugInfo] Enable debug information for C99 VLA types

Adrian Prantl via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 31 14:29:18 PST 2018


aprantl accepted this revision.
aprantl added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lib/CodeGen/CGDecl.cpp:994
+          cast<llvm::AllocaInst>(VlaSize.NumElts)->getName());
+      auto QT = getContext().getIntTypeForBitwidth(VlaSize.NumElts->getType()
+                                                       ->getPointerElementType()
----------------
perhaps factor this out into a variable for readability?


https://reviews.llvm.org/D41698





More information about the cfe-commits mailing list