diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-03-30 03:26:17 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-03-30 03:26:17 +0000 |
commit | 5e66a7e699953ec09dd8b91dee9a0ec847f795a9 (patch) | |
tree | 9f548c52c5bacecaf484cbf2c0dd7b2585c3cd8c /llvm/lib/Transforms/IPO/FunctionAttrs.cpp | |
parent | ceec2cba64496805a07fa586ff51d13d090fdcdf (diff) | |
download | bcm5719-llvm-5e66a7e699953ec09dd8b91dee9a0ec847f795a9.tar.gz bcm5719-llvm-5e66a7e699953ec09dd8b91dee9a0ec847f795a9.zip |
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.
llvm-svn: 205121
Diffstat (limited to 'llvm/lib/Transforms/IPO/FunctionAttrs.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/FunctionAttrs.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp index 7add0d576ab..b716718574d 100644 --- a/llvm/lib/Transforms/IPO/FunctionAttrs.cpp +++ b/llvm/lib/Transforms/IPO/FunctionAttrs.cpp @@ -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; |