[llvm] r185414 - Add missing break statements. Noticed by inspection.
Nick Lewycky
nicholas at mxc.ca
Mon Jul 1 22:02:56 PDT 2013
Author: nicholas
Date: Tue Jul 2 00:02:56 2013
New Revision: 185414
URL: http://llvm.org/viewvc/llvm-project?rev=185414&view=rev
Log:
Add missing break statements. Noticed by inspection.
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=185414&r1=185413&r2=185414&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/FunctionAttrs.cpp Tue Jul 2 00:02:56 2013
@@ -1004,6 +1004,7 @@ bool FunctionAttrs::inferPrototypeAttrib
return false;
setDoesNotThrow(F);
setDoesNotCapture(F, 3);
+ break;
case LibFunc::fread:
case LibFunc::fwrite:
if (FTy->getNumParams() != 4 ||
@@ -1013,6 +1014,7 @@ bool FunctionAttrs::inferPrototypeAttrib
setDoesNotThrow(F);
setDoesNotCapture(F, 1);
setDoesNotCapture(F, 4);
+ break;
case LibFunc::fputs:
case LibFunc::fscanf:
case LibFunc::fprintf:
More information about the llvm-commits
mailing list