mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 07:24:25 +00:00
Try to silence a overeager GCC warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111214 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -569,6 +569,8 @@ void ELFObjectWriterImpl::RecordRelocation(const MCAssembler &Asm,
|
|||||||
ERE.r_info = ERE64.r_info;
|
ERE.r_info = ERE64.r_info;
|
||||||
if (HasRelocationAddend)
|
if (HasRelocationAddend)
|
||||||
ERE.r_addend = Addend;
|
ERE.r_addend = Addend;
|
||||||
|
else
|
||||||
|
ERE.r_addend = 0; // Silence compiler warning.
|
||||||
|
|
||||||
Relocations[Fragment->getParent()].push_back(ERE);
|
Relocations[Fragment->getParent()].push_back(ERE);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user