diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-01-07 07:22:20 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-01-07 07:22:20 +0000 |
| commit | cc4715e06ea690a6378163267797e04ba52ec414 (patch) | |
| tree | ebf6f343305b3b7b0ac0855d8633c7c6801a4d6f /llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp | |
| parent | 9641ab26ece77a2995bd4c3e8540556404dba895 (diff) | |
| download | bcm5719-llvm-cc4715e06ea690a6378163267797e04ba52ec414.tar.gz bcm5719-llvm-cc4715e06ea690a6378163267797e04ba52ec414.zip | |
relax some types
llvm-svn: 32982
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp b/llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp index 1df7001488e..d003f6ca914 100644 --- a/llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp +++ b/llvm/lib/Transforms/Instrumentation/ProfilingUtils.cpp @@ -25,7 +25,7 @@ void llvm::InsertProfilingInitCall(Function *MainFn, const char *FnName, const Type *ArgVTy = PointerType::get(PointerType::get(Type::Int8Ty)); const PointerType *UIntPtr = PointerType::get(Type::Int32Ty); Module &M = *MainFn->getParent(); - Function *InitFn = M.getOrInsertFunction(FnName, Type::Int32Ty, Type::Int32Ty, + Constant *InitFn = M.getOrInsertFunction(FnName, Type::Int32Ty, Type::Int32Ty, ArgVTy, UIntPtr, Type::Int32Ty, (Type *)0); |

