Rather than passing "false" for InsertBefore, AddressSpace for ThreadLocal,
[oota-llvm.git] / lib / VMCore / Core.cpp
index abf258391fc7bb76eeee97b69a4e94b5be59dee9..d8001c27365cb3652e9988a20d768d96b29d5f00 100644 (file)
@@ -1157,8 +1157,8 @@ LLVMValueRef LLVMAddGlobalInAddressSpace(LLVMModuleRef M, LLVMTypeRef Ty,
                                          const char *Name,
                                          unsigned AddressSpace) {
   return wrap(new GlobalVariable(*unwrap(M), unwrap(Ty), false,
-                                 GlobalValue::ExternalLinkage, 0, Name, false,
-                                 AddressSpace));
+                                 GlobalValue::ExternalLinkage, 0, Name, 0,
+                                 false, AddressSpace));
 }
 
 LLVMValueRef LLVMGetNamedGlobal(LLVMModuleRef M, const char *Name) {