should convert from llvm address to GEN address space to compare.

Submitted by Yang, Rong R on Dec. 30, 2015, 7:25 a.m.

Details

Message ID 1451460329-4551-1-git-send-email-rong.r.yang@intel.com
State New
Headers show
Series "should convert from llvm address to GEN address space to compare." ( rev: 1 ) in Beignet

Not browsing as part of any series.

Commit Message

Yang, Rong R Dec. 30, 2015, 7:25 a.m.
From: Luo Xionghu <rong.r.yang@intel.com>

Signed-off-by: Luo Xionghu <rong.r.yang@intel.com>
---
 backend/src/llvm/llvm_gen_backend.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/backend/src/llvm/llvm_gen_backend.cpp b/backend/src/llvm/llvm_gen_backend.cpp
index f2d3704..886b6f3 100644
--- a/backend/src/llvm/llvm_gen_backend.cpp
+++ b/backend/src/llvm/llvm_gen_backend.cpp
@@ -1508,7 +1508,7 @@  namespace gbe
       const GlobalVariable &v = *i;
       if(!v.isConstantUsed()) continue;
       const char *name = v.getName().data();
-      unsigned addrSpace = v.getType()->getAddressSpace();
+      ir::AddressSpace addrSpace = addressSpaceLLVMToGen(v.getType()->getAddressSpace());
       if(addrSpace == ir::AddressSpace::MEM_CONSTANT || v.isConstant()) {
         GBE_ASSERT(v.hasInitializer());
         const Constant *c = v.getInitializer();