Rather than passing "false" for InsertBefore, AddressSpace for ThreadLocal,

and nothing for AddressSpace, pass 0 for InsertBefore, "false" for ThreadLocal
and AddressSpace for AddressSpace.  Spotted by gcc-4.5.

llvm-svn: 97563
This commit is contained in:
Duncan Sands 2010-03-02 11:18:43 +00:00
parent 2019e2922f
commit 5a60a368dd

View 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) {