diff options
Diffstat (limited to 'lib/Transforms/Instrumentation/TraceValues.cpp')
-rw-r--r-- | lib/Transforms/Instrumentation/TraceValues.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Instrumentation/TraceValues.cpp b/lib/Transforms/Instrumentation/TraceValues.cpp index e064caa817..e31aeb8185 100644 --- a/lib/Transforms/Instrumentation/TraceValues.cpp +++ b/lib/Transforms/Instrumentation/TraceValues.cpp @@ -67,8 +67,8 @@ Pass *createTraceValuesPassForBasicBlocks() { // Trace BB's and methods // bool InsertTraceCode::doInitialization(Module *M) { const Type *SBP = PointerType::get(Type::SByteTy); - const MethodType *MTy = - MethodType::get(Type::IntTy, vector<const Type*>(1, SBP), true); + const FunctionType *MTy = + FunctionType::get(Type::IntTy, vector<const Type*>(1, SBP), true); PrintfFunc = M->getOrInsertFunction("printf", MTy); return false; |