summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorSerge Guelton <sguelton@quarkslab.com>2017-05-10 13:24:17 +0000
committerSerge Guelton <sguelton@quarkslab.com>2017-05-10 13:24:17 +0000
commit778ece82ae37ba05b43134f8cf322b987715f020 (patch)
tree8dc50e28ace52ac00fd9e1b52883dc40f7935067 /llvm/lib/Transforms
parentc9668165d68b1247b8aedd07a8e4f4201a77e9f3 (diff)
downloadbcm5719-llvm-778ece82ae37ba05b43134f8cf322b987715f020.tar.gz
bcm5719-llvm-778ece82ae37ba05b43134f8cf322b987715f020.zip
Use explicit false instead of casted nullptr. NFC.
llvm-svn: 302656
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
index a882a5c9bdc..e2e3cbdbc29 100644
--- a/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
@@ -476,14 +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);
OpenPOWER on IntegriCloud