From 83705658205c8767ee024513297e5d921eca6db6 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sat, 17 May 2014 19:57:46 +0000 Subject: Reduce abuse of default values in the GlobalAlias constructor. This is in preparation for adding an optional offset. llvm-svn: 209073 --- llvm/lib/IR/Core.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/IR/Core.cpp') diff --git a/llvm/lib/IR/Core.cpp b/llvm/lib/IR/Core.cpp index 100c9def185..dc3d6f34c88 100644 --- a/llvm/lib/IR/Core.cpp +++ b/llvm/lib/IR/Core.cpp @@ -1489,9 +1489,9 @@ void LLVMSetExternallyInitialized(LLVMValueRef GlobalVar, LLVMBool IsExtInit) { LLVMValueRef LLVMAddAlias(LLVMModuleRef M, LLVMTypeRef Ty, LLVMValueRef Aliasee, const char *Name) { auto *PTy = cast(unwrap(Ty)); - return wrap(new GlobalAlias( - PTy->getElementType(), GlobalValue::ExternalLinkage, Name, - unwrap(Aliasee), unwrap(M), PTy->getAddressSpace())); + return wrap(new GlobalAlias(PTy->getElementType(), PTy->getAddressSpace(), + GlobalValue::ExternalLinkage, Name, + unwrap(Aliasee), unwrap(M))); } /*--.. Operations on functions .............................................--*/ -- cgit v1.2.3