mgehre added inline comments.

================
Comment at: lib/Analysis/CFG.cpp:1949-1952
@@ +1948,6 @@
+  }
+  if (!C->body_empty() && !isa<ReturnStmt>(*C->body_rbegin())) {
+    // If the body ends with a ReturnStmt, the dtors will be added in 
VisitReturnStmt
+    addAutomaticObjDtors(ScopePos, scopeBeginPos, C);
+  }
+
----------------
Yes, sorry, I was busy with something else. I was reluctant to fix the more 
general case, because that would introduce a second loop, and may (or may not) 
have performance implications. On the other hand, unreachable block don't seem 
to have any negative impact.



http://reviews.llvm.org/D13973



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

Reply via email to