summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2013-07-02 05:02:56 +0000
committerNick Lewycky <nicholas@mxc.ca>2013-07-02 05:02:56 +0000
commit26fcc51f153f0f5a3e24030f0216165a5ac2ffc8 (patch)
treeb01644d1c5b6372a561ef4aaf1458a602e6d8819 /llvm/lib/Transforms
parent38f66b233ce7645844ff28a4dd9a9e331595301c (diff)
downloadbcm5719-llvm-26fcc51f153f0f5a3e24030f0216165a5ac2ffc8.tar.gz
bcm5719-llvm-26fcc51f153f0f5a3e24030f0216165a5ac2ffc8.zip
Add missing break statements. Noticed by inspection.
llvm-svn: 185414
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/IPO/FunctionAttrs.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
index bc5109b4d48..79ce3c33057 100644
--- a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp
@@ -1004,6 +1004,7 @@ bool FunctionAttrs::inferPrototypeAttributes(Function &F) {
return false;
setDoesNotThrow(F);
setDoesNotCapture(F, 3);
+ break;
case LibFunc::fread:
case LibFunc::fwrite:
if (FTy->getNumParams() != 4 ||
@@ -1013,6 +1014,7 @@ bool FunctionAttrs::inferPrototypeAttributes(Function &F) {
setDoesNotThrow(F);
setDoesNotCapture(F, 1);
setDoesNotCapture(F, 4);
+ break;
case LibFunc::fputs:
case LibFunc::fscanf:
case LibFunc::fprintf:
OpenPOWER on IntegriCloud