diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-02-07 22:37:06 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-02-07 22:37:06 +0000 |
| commit | d8f0786c3172d966ab1ec48ed38e7b09aeb076a4 (patch) | |
| tree | 5659fe00a2ee2db317b991d767ce3eecd9087f81 /llvm/lib/CodeGen/IntrinsicLowering.cpp | |
| parent | 79f955bfed4b3d280918b5eb7f3a778145f178fa (diff) | |
| download | bcm5719-llvm-d8f0786c3172d966ab1ec48ed38e7b09aeb076a4.tar.gz bcm5719-llvm-d8f0786c3172d966ab1ec48ed38e7b09aeb076a4.zip | |
Add missing break statements, fixing PR3503.
llvm-svn: 64040
Diffstat (limited to 'llvm/lib/CodeGen/IntrinsicLowering.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/IntrinsicLowering.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/IntrinsicLowering.cpp b/llvm/lib/CodeGen/IntrinsicLowering.cpp index e893a06699c..5b4de27b8a9 100644 --- a/llvm/lib/CodeGen/IntrinsicLowering.cpp +++ b/llvm/lib/CodeGen/IntrinsicLowering.cpp @@ -34,22 +34,25 @@ static void EnsureFunctionExists(Module &M, const char *Name, M.getOrInsertFunction(Name, FunctionType::get(RetTy, ParamTys, false)); } -static void EnsureFPIntrinsicsExist(Module &M, Module::iterator I, - const char *FName, - const char *DName, const char *LDName) { +static void EnsureFPIntrinsicsExist(Module &M, Function *Fn, + const char *FName, + const char *DName, const char *LDName) { // Insert definitions for all the floating point types. - switch((int)I->arg_begin()->getType()->getTypeID()) { + switch((int)Fn->arg_begin()->getType()->getTypeID()) { case Type::FloatTyID: - EnsureFunctionExists(M, FName, I->arg_begin(), I->arg_end(), + EnsureFunctionExists(M, FName, Fn->arg_begin(), Fn->arg_end(), Type::FloatTy); + break; case Type::DoubleTyID: - EnsureFunctionExists(M, DName, I->arg_begin(), I->arg_end(), + EnsureFunctionExists(M, DName, Fn->arg_begin(), Fn->arg_end(), Type::DoubleTy); + break; case Type::X86_FP80TyID: case Type::FP128TyID: case Type::PPC_FP128TyID: - EnsureFunctionExists(M, LDName, I->arg_begin(), I->arg_end(), - I->arg_begin()->getType()); + EnsureFunctionExists(M, LDName, Fn->arg_begin(), Fn->arg_end(), + Fn->arg_begin()->getType()); + break; } } |

