[PATCH] Fix addrspace when emitting constructors of static local variables
Eli Bendersky
eliben at google.com
Mon Mar 23 23:56:18 PDT 2015
================
Comment at: lib/CodeGen/CGDeclCXX.cpp:145
@@ +144,3 @@
+ unsigned DeclaredAddrSpace = getContext().getTargetAddressSpace(T);
+ unsigned ActualAddrSpace = CGM.GetGlobalVarAddressSpace(&D, DeclaredAddrSpace);
+ if (ActualAddrSpace != DeclaredAddrSpace) {
----------------
Why is DeclaredAddrSpace passed to GetGlobalVarAddressSpace here?
http://reviews.llvm.org/D8575
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list