diff options
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/SafeStack.cpp')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/SafeStack.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/SafeStack.cpp b/llvm/lib/Transforms/Instrumentation/SafeStack.cpp index f63f3a5f45f..d351358b463 100644 --- a/llvm/lib/Transforms/Instrumentation/SafeStack.cpp +++ b/llvm/lib/Transforms/Instrumentation/SafeStack.cpp @@ -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. |