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 | 9b7e2b555c5291a2ee8035b06268b92f5bf3293d (patch) | |
tree | c1cc8e87e0176fb3f4e0e0c4db5f438fd6b926e4 /llvm/lib/Transforms | |
parent | 9a5ed9c3bd9666da08e4c50c5ffd286ba23fc3cd (diff) | |
download | bcm5719-llvm-9b7e2b555c5291a2ee8035b06268b92f5bf3293d.tar.gz bcm5719-llvm-9b7e2b555c5291a2ee8035b06268b92f5bf3293d.zip |
80 cols
llvm-svn: 189473
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp index 8ee5482ceaf..9b9e725cde8 100644 --- a/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp +++ b/llvm/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 { |