diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2013-07-02 05:02:56 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2013-07-02 05:02:56 +0000 |
commit | e7dd3afef074596dd61211b5e0b05c4de5d5f85b (patch) | |
tree | 562403ebdb767247d1e627a22a5343b63d77f3ec /lib/Transforms/IPO | |
parent | 2a210b7df7156cfc348e8287e05fcf662646614d (diff) | |
download | llvm-e7dd3afef074596dd61211b5e0b05c4de5d5f85b.tar.gz llvm-e7dd3afef074596dd61211b5e0b05c4de5d5f85b.tar.bz2 llvm-e7dd3afef074596dd61211b5e0b05c4de5d5f85b.tar.xz |
Add missing break statements. Noticed by inspection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185414 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO')
-rw-r--r-- | lib/Transforms/IPO/FunctionAttrs.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Transforms/IPO/FunctionAttrs.cpp b/lib/Transforms/IPO/FunctionAttrs.cpp index bc5109b4d4..79ce3c3305 100644 --- a/lib/Transforms/IPO/FunctionAttrs.cpp +++ b/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: |