Index: src/IceConverter.cpp |
diff --git a/src/IceConverter.cpp b/src/IceConverter.cpp |
index e54dd2a0403354a2cec808e18c8693392a24ccd1..4cd7091adfb78f93311157ffdd36c3025dc1f04f 100644 |
--- a/src/IceConverter.cpp |
+++ b/src/IceConverter.cpp |
@@ -787,8 +787,8 @@ void LLVM2ICEGlobalsConverter::addGlobalInitializer( |
assert(GV); |
const Ice::GlobalDeclaration *Addr = |
getConverter().getGlobalDeclaration(GV); |
- Global.addInitializer( |
- Ice::VariableDeclaration::RelocInitializer::create(Addr, Offset)); |
+ Global.addInitializer(Ice::VariableDeclaration::RelocInitializer::create( |
+ Addr, {Ice::RelocOffset::create(Ctx, Offset)})); |
return; |
} |
default: |