Index: src/PNaClTranslator.cpp |
diff --git a/src/PNaClTranslator.cpp b/src/PNaClTranslator.cpp |
index 13e08702ebbfb5af5e280632b28bef6152e24a17..97b8c34ce1dc4de8c1a048a81a54e26107a283e7 100644 |
--- a/src/PNaClTranslator.cpp |
+++ b/src/PNaClTranslator.cpp |
@@ -1211,9 +1211,10 @@ void GlobalsParser::ProcessRecord() { |
Error(StrBuf.str()); |
} |
} |
+ Ice::GlobalContext *Ctx = getTranslator().getContext(); |
CurGlobalVar->addInitializer( |
Ice::VariableDeclaration::RelocInitializer::create( |
- getGlobalDeclByID(Index), Offset)); |
+ getGlobalDeclByID(Index), {Ice::RelocOffset::create(Ctx, Offset)})); |
return; |
} |
default: |