aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/MachObjectWriter.cpp
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2010-12-22 18:25:55 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2010-12-22 18:25:55 +0000
commit33a03c73ef8f0bd0351754048669b6337539e731 (patch)
treefa2fa1f036b677e01651292fedf5198b7e1da738 /lib/MC/MachObjectWriter.cpp
parent1cd05bb605e3c3eee9197d3f10b628c60d0cc07a (diff)
downloadexternal_llvm-33a03c73ef8f0bd0351754048669b6337539e731.zip
external_llvm-33a03c73ef8f0bd0351754048669b6337539e731.tar.gz
external_llvm-33a03c73ef8f0bd0351754048669b6337539e731.tar.bz2
Fix another conditional expression mismatched enum type warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122419 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MachObjectWriter.cpp')
-rw-r--r--lib/MC/MachObjectWriter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/MC/MachObjectWriter.cpp b/lib/MC/MachObjectWriter.cpp
index cab6452..1347427 100644
--- a/lib/MC/MachObjectWriter.cpp
+++ b/lib/MC/MachObjectWriter.cpp
@@ -1007,7 +1007,8 @@ public:
FixedValue -= getSectionAddress(Fragment->getParent());
// Determine the appropriate type based on the fixup kind.
- Type = Is24BitBranch ? macho::RIT_ARM_Branch24Bit : macho::RIT_Vanilla;
+ Type = Is24BitBranch ? (unsigned)macho::RIT_ARM_Branch24Bit :
+ (unsigned)macho::RIT_Vanilla;
}
// struct relocation_info (8 bytes)