rjmccall added inline comments.

================
Comment at: lib/CodeGen/CGExpr.cpp:76
     auto DestAddrSpace = getContext().getTargetAddressSpace(LangAS::Default);
+    EnsureInsertPoint();
+    auto *CurBB = Builder.GetInsertBlock();
----------------
IRBuilder already has saveIP() and restoreIP() methods for this purpose that 
deal correctly with the current insertion point being null.


https://reviews.llvm.org/D35438



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to