[llvm] r205121 - Add a missing break.

Rafael Espindola rafael.espindola at gmail.com
Sat Mar 29 20:26:17 PDT 2014


Author: rafael
Date: Sat Mar 29 22:26:17 2014
New Revision: 205121

URL: http://llvm.org/viewvc/llvm-project?rev=205121&view=rev
Log:
Add a missing break.

Patch by Tobias G√ľntner.

I tried to write a test, but the only difference is the Changed value that
gets returned. It can be tested with "opt -debug-pass=Executions -functionattrs,
but that doesn't seem worth it.

Modified:
    llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp

Modified: llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp?rev=205121&r1=205120&r2=205121&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp Sat Mar 29 22:26:17 2014
@@ -1649,6 +1649,7 @@ bool FunctionAttrs::inferPrototypeAttrib
     setDoesNotThrow(F);
     setDoesNotCapture(F, 1);
     setDoesNotCapture(F, 2);
+    break;
   default:
     // Didn't mark any attributes.
     return false;





More information about the llvm-commits mailing list