diff --git a/llvm/include/llvm/IR/GlobalAlias.h b/llvm/include/llvm/IR/GlobalAlias.h --- a/llvm/include/llvm/IR/GlobalAlias.h +++ b/llvm/include/llvm/IR/GlobalAlias.h @@ -60,6 +60,7 @@ void copyAttributesFrom(const GlobalValue *Src) { GlobalValue::copyAttributesFrom(Src); + setThreadLocalMode(Src->getThreadLocalMode()); } /// removeFromParent - This method unlinks 'this' from the containing module,