rjmccall added a comment. Wouldn't it be simpler to just record an insertion point for the beginning of the current lexical scope and insert the lifetime.begin there instead of at the current IP?
================ Comment at: lib/CodeGen/CodeGenFunction.h:351 llvm::Value *Size; + llvm::CallInst *LifetimeStart; ---------------- Addr and Size are recoverable from this. https://reviews.llvm.org/D27680 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits