[llvm-commits] [llvm] r131161 - /llvm/trunk/lib/MC/MCDwarf.cpp
Rafael Espindola
rafael.espindola at gmail.com
Tue May 10 15:28:36 PDT 2011
Author: rafael
Date: Tue May 10 17:28:35 2011
New Revision: 131161
URL: http://llvm.org/viewvc/llvm-project?rev=131161&view=rev
Log:
Avoid a gcc warning.
Modified:
llvm/trunk/lib/MC/MCDwarf.cpp
Modified: llvm/trunk/lib/MC/MCDwarf.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCDwarf.cpp?rev=131161&r1=131160&r2=131161&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCDwarf.cpp (original)
+++ llvm/trunk/lib/MC/MCDwarf.cpp Tue May 10 17:28:35 2011
@@ -770,7 +770,8 @@
unsigned size = getSizeForEncoding(streamer, fdeEncoding);
// PC Begin
- unsigned PCBeginEncoding = IsEH ? fdeEncoding : dwarf::DW_EH_PE_absptr;
+ unsigned PCBeginEncoding = IsEH ? fdeEncoding :
+ (unsigned)dwarf::DW_EH_PE_absptr;
unsigned PCBeginSize = getSizeForEncoding(streamer, PCBeginEncoding);
EmitSymbol(streamer, *frame.Begin, PCBeginEncoding);
More information about the llvm-commits
mailing list