forked from OSchip/llvm-project
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
This commit is contained in:
parent
ceec2cba64
commit
5e66a7e699
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue