[PATCH] Make dead return statement detection more robust against changes in the CFG.

Jordan Rose jordan_rose at apple.com
Wed May 21 20:34:58 PDT 2014


================
Comment at: lib/Analysis/ReachableCode.cpp:84
@@ -82,1 +83,3 @@
         }
+        break;
+      }
----------------
If the block //does// contain a statement, and it's not a return, then we don't want to keep searching, do we?

http://reviews.llvm.org/D3638






More information about the cfe-commits mailing list