Extend the IL for selecting TLS models (PR9788)
[oota-llvm.git] / lib / Transforms / Instrumentation / AddressSanitizer.cpp
index a9d08db9c603e256fbf1b91c1273bcbe208b0f3c..375a2ae7b0ad787e38f4c03b88179e524f3841e9 100644 (file)
@@ -511,7 +511,7 @@ bool AddressSanitizer::insertGlobalRedzones(Module &M) {
     // Create a new global variable with enough space for a redzone.
     GlobalVariable *NewGlobal = new GlobalVariable(
         M, NewTy, G->isConstant(), G->getLinkage(),
-        NewInitializer, "", G, G->isThreadLocal());
+        NewInitializer, "", G, G->getThreadLocalMode());
     NewGlobal->copyAttributesFrom(G);
     NewGlobal->setAlignment(RedzoneSize);