[PATCH] D27680: [CodeGen] Move lifetime.start of a variable when goto jumps back past its declaration

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 20 14:28:44 PST 2016


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





More information about the cfe-commits mailing list