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 | febe5f1b3c43c217e4c32155cda9bcc9e1e50e11 (patch) | |
tree | 662cfc2882aac9d31e178edb5dd7eac9d4bb86a4 /lib/Transforms/Instrumentation/ProfilingUtils.cpp | |
parent | 35057c2625efb902048c215cf52f960f60944318 (diff) |
relax some types
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32982 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation/ProfilingUtils.cpp')
-rw-r--r-- | lib/Transforms/Instrumentation/ProfilingUtils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Instrumentation/ProfilingUtils.cpp b/lib/Transforms/Instrumentation/ProfilingUtils.cpp index 1df7001488..d003f6ca91 100644 --- a/lib/Transforms/Instrumentation/ProfilingUtils.cpp +++ b/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); |