[llvm-commits] [llvm] r111214 - /llvm/trunk/lib/MC/ELFObjectWriter.cpp
Benjamin Kramer
benny.kra at googlemail.com
Mon Aug 16 17:33:24 PDT 2010
Author: d0k
Date: Mon Aug 16 19:33:24 2010
New Revision: 111214
URL: http://llvm.org/viewvc/llvm-project?rev=111214&view=rev
Log:
Try to silence a overeager GCC warning.
Modified:
llvm/trunk/lib/MC/ELFObjectWriter.cpp
Modified: llvm/trunk/lib/MC/ELFObjectWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/ELFObjectWriter.cpp?rev=111214&r1=111213&r2=111214&view=diff
==============================================================================
--- llvm/trunk/lib/MC/ELFObjectWriter.cpp (original)
+++ llvm/trunk/lib/MC/ELFObjectWriter.cpp Mon Aug 16 19:33:24 2010
@@ -569,6 +569,8 @@
ERE.r_info = ERE64.r_info;
if (HasRelocationAddend)
ERE.r_addend = Addend;
+ else
+ ERE.r_addend = 0; // Silence compiler warning.
Relocations[Fragment->getParent()].push_back(ERE);
}
More information about the llvm-commits
mailing list