diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-08-28 11:25:12 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-08-28 11:25:12 +0000 |
commit | f1db2a6a0e0ca2e0f03169ba4dc7c8332bd6ed74 (patch) | |
tree | 56311ca6c62edf2ab621eb4946c38f37e2332433 /lib/Transforms/Instrumentation | |
parent | 2fb982aa720ec1ef149b2d9add2673c313f08792 (diff) | |
download | llvm-f1db2a6a0e0ca2e0f03169ba4dc7c8332bd6ed74.tar.gz llvm-f1db2a6a0e0ca2e0f03169ba4dc7c8332bd6ed74.tar.bz2 llvm-f1db2a6a0e0ca2e0f03169ba4dc7c8332bd6ed74.tar.xz |
80 cols
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189473 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation')
-rw-r--r-- | lib/Transforms/Instrumentation/DataFlowSanitizer.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp b/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp index 8ee5482cea..9b9e725cde 100644 --- a/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp +++ b/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp @@ -307,10 +307,11 @@ FunctionType *DataFlowSanitizer::getTrampolineFunctionType(FunctionType *T) { FunctionType *DataFlowSanitizer::getCustomFunctionType(FunctionType *T) { assert(!T->isVarArg()); llvm::SmallVector<Type *, 4> ArgTypes; - for (FunctionType::param_iterator i = T->param_begin(), e = T->param_end(); i != e; ++i) { + for (FunctionType::param_iterator i = T->param_begin(), e = T->param_end(); + i != e; ++i) { FunctionType *FT; - if (isa<PointerType>(*i) && - (FT = dyn_cast<FunctionType>(cast<PointerType>(*i)->getElementType()))) { + if (isa<PointerType>(*i) && (FT = dyn_cast<FunctionType>(cast<PointerType>( + *i)->getElementType()))) { ArgTypes.push_back(getTrampolineFunctionType(FT)->getPointerTo()); ArgTypes.push_back(Type::getInt8PtrTy(*Ctx)); } else { |