diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-05-16 19:46:52 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-05-16 19:46:52 +0000 | 
| commit | 6b3f41ed88e8e440e11a4fbf20b6600529f80049 (patch) | |
| tree | 928b056f24a634d628c80238dbbf10d41b1a71d5 /lib/Transforms/Instrumentation/DataFlowSanitizer.cpp | |
| parent | c46e6a5940c50058e00c0c5f9123fd82e338d29a (diff) | |
Notes
Diffstat (limited to 'lib/Transforms/Instrumentation/DataFlowSanitizer.cpp')
| -rw-r--r-- | lib/Transforms/Instrumentation/DataFlowSanitizer.cpp | 8 | 
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp b/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp index 8786781933ea1..e2e3cbdbc295b 100644 --- a/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp +++ b/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp @@ -388,7 +388,7 @@ FunctionType *DataFlowSanitizer::getArgsFunctionType(FunctionType *T) {      ArgTypes.push_back(ShadowPtrTy);    Type *RetType = T->getReturnType();    if (!RetType->isVoidTy()) -    RetType = StructType::get(RetType, ShadowTy, (Type *)nullptr); +    RetType = StructType::get(RetType, ShadowTy);    return FunctionType::get(RetType, ArgTypes, T->isVarArg());  } @@ -476,16 +476,14 @@ bool DataFlowSanitizer::doInitialization(Module &M) {      GetArgTLS = ConstantExpr::getIntToPtr(          ConstantInt::get(IntptrTy, uintptr_t(GetArgTLSPtr)),          PointerType::getUnqual( -            FunctionType::get(PointerType::getUnqual(ArgTLSTy), -                              (Type *)nullptr))); +            FunctionType::get(PointerType::getUnqual(ArgTLSTy), false)));    }    if (GetRetvalTLSPtr) {      RetvalTLS = nullptr;      GetRetvalTLS = ConstantExpr::getIntToPtr(          ConstantInt::get(IntptrTy, uintptr_t(GetRetvalTLSPtr)),          PointerType::getUnqual( -            FunctionType::get(PointerType::getUnqual(ShadowTy), -                              (Type *)nullptr))); +            FunctionType::get(PointerType::getUnqual(ShadowTy), false)));    }    ColdCallWeights = MDBuilder(*Ctx).createBranchWeights(1, 1000);  | 
