| Index: src/IceFixups.cpp
|
| diff --git a/src/IceFixups.cpp b/src/IceFixups.cpp
|
| index ef594acb8ed87837cb39aebde1b630507eed4d47..b323bc611561a9d61e66286fb2e7636ea88c5aaf 100644
|
| --- a/src/IceFixups.cpp
|
| +++ b/src/IceFixups.cpp
|
| @@ -23,10 +23,10 @@ const Constant *AssemblerFixup::NullSymbol = nullptr;
|
|
|
| RelocOffsetT AssemblerFixup::offset() const {
|
| if (isNullSymbol())
|
| - return 0;
|
| + return addend_;
|
| if (const auto *CR = llvm::dyn_cast<ConstantRelocatable>(value_))
|
| - return CR->getOffset();
|
| - return 0;
|
| + return CR->getOffset() + addend_;
|
| + return addend_;
|
| }
|
|
|
| IceString AssemblerFixup::symbol(const GlobalContext *Ctx,
|
|
|