yaxunl marked an inline comment as done. yaxunl added inline comments.
================ Comment at: lib/CodeGen/CGExpr.cpp:76 auto DestAddrSpace = getContext().getTargetAddressSpace(LangAS::Default); + EnsureInsertPoint(); + auto *CurBB = Builder.GetInsertBlock(); ---------------- rjmccall wrote: > IRBuilder already has saveIP() and restoreIP() methods for this purpose that > deal correctly with the current insertion point being null. Thanks. I will use those. https://reviews.llvm.org/D35438 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits