aboutsummaryrefslogtreecommitdiff
path: root/tools/pso-stub
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pso-stub')
-rw-r--r--tools/pso-stub/pso-stub.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/pso-stub/pso-stub.cpp b/tools/pso-stub/pso-stub.cpp
index 45d5347e22..1fdc868499 100644
--- a/tools/pso-stub/pso-stub.cpp
+++ b/tools/pso-stub/pso-stub.cpp
@@ -145,7 +145,9 @@ AddGlobalVariable(Module *M,
GlobalVariable *GV =
new GlobalVariable(*M, Ty, /*isConstant=*/ false,
Linkage, /*Initializer=*/ InitVal,
- Twine(Name), /*InsertBefore=*/ NULL, isTLS,
+ Twine(Name), /*InsertBefore=*/ NULL,
+ isTLS ? GlobalVariable::GeneralDynamicTLSModel :
+ GlobalVariable::NotThreadLocal,
/*AddressSpace=*/ 0);
AddUsedGlobal(GV);
}