Fix some Clang-tidy modernize warnings, other minor fixes.
[oota-llvm.git] / lib / Transforms / Instrumentation / SafeStack.cpp
index f63f3a5f45f7637dcab9079d70b7a32aafb7f93a..d351358b463595a30e27afc92f7082330cdf18d1 100644 (file)
@@ -261,7 +261,7 @@ Value *SafeStack::getOrCreateUnsafeStackPtr(IRBuilder<> &IRB, Function &F) {
     // We use the initial-exec TLS model because we do not support the
     // variable living anywhere other than in the main executable.
     UnsafeStackPtr = new GlobalVariable(
-        M, StackPtrTy, false, GlobalValue::ExternalLinkage, 0,
+        M, StackPtrTy, false, GlobalValue::ExternalLinkage, nullptr,
         UnsafeStackPtrVar, nullptr, GlobalValue::InitialExecTLSModel);
   } else {
     // The variable exists, check its type and attributes.