GCC objects to the two sides of a conditional expression having different enum
authorMatt Beaumont-Gay <matthewbg@google.com>
Tue, 21 Dec 2010 23:43:23 +0000 (23:43 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Tue, 21 Dec 2010 23:43:23 +0000 (23:43 +0000)
commite733cf8c2743acf0e4bee4952dfb013de6257478
tree3134444df00ad4d1d7bd4cc2eae38dbb2e9cf954
parent491e0307a8bca870d9de03962204b03286b106f7
GCC objects to the two sides of a conditional expression having different enum
types, but they're just getting converted to unsigned anyway, so cast first
(and ask questions later).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122377 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MachObjectWriter.cpp