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

David Majnemer via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 12 13:31:42 PST 2016

majnemer added inline comments.

Comment at: lib/CodeGen/CodeGenFunction.h:619
+    bool hasLabel(const LabelDecl *LD) const {
+      return std::find(Labels.begin(), Labels.end(), LD) != Labels.end();
+    }
This can be written as `llvm::is_contained(Labels, LD);`


More information about the cfe-commits mailing list