Add a missing break.
authorRafael Espindola <rafael.espindola@gmail.com>
Sun, 30 Mar 2014 03:26:17 +0000 (03:26 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sun, 30 Mar 2014 03:26:17 +0000 (03:26 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205121 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/FunctionAttrs.cpp

index 7add0d576abda5da2f97a40976d88853c3cc346e..b716718574db30612feb845d35b2ea1fa1c2cddb 100644 (file)
@@ -1649,6 +1649,7 @@ bool FunctionAttrs::inferPrototypeAttributes(Function &F) {
     setDoesNotThrow(F);
     setDoesNotCapture(F, 1);
     setDoesNotCapture(F, 2);
+    break;
   default:
     // Didn't mark any attributes.
     return false;