aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-05-10 22:28:35 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-05-10 22:28:35 +0000
commit9989ef43faf1cd7eb01a6d45063f5040e9c8bb3e (patch)
tree9c8035c3f2cb11f50e2247fb15410ff5891215b2 /lib/MC
parentfdcdafcd307badd6dcd3280efb25c723c7e4e43c (diff)
downloadexternal_llvm-9989ef43faf1cd7eb01a6d45063f5040e9c8bb3e.zip
external_llvm-9989ef43faf1cd7eb01a6d45063f5040e9c8bb3e.tar.gz
external_llvm-9989ef43faf1cd7eb01a6d45063f5040e9c8bb3e.tar.bz2
Avoid a gcc warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131161 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r--lib/MC/MCDwarf.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/MC/MCDwarf.cpp b/lib/MC/MCDwarf.cpp
index 7cf6cdd..93f10c43 100644
--- a/lib/MC/MCDwarf.cpp
+++ b/lib/MC/MCDwarf.cpp
@@ -770,7 +770,8 @@ MCSymbol *FrameEmitterImpl::EmitFDE(MCStreamer &streamer,
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);