[mips] Try to fix 'truncation from FindBestPredicateResult to bool' reported by MSVC

llvm-svn: 268928
This commit is contained in:
Daniel Sanders 2016-05-09 15:50:15 +00:00
parent cc9a2cf7ee
commit 108823bc35
1 changed files with 3 additions and 3 deletions

View File

@ -167,9 +167,9 @@ static unsigned getMatchingLoType(const ELFRelocationEntry &Reloc) {
/// A matching relocation is unbeatable if:
/// - It is not already involved in a match.
/// - It's offset is exactly that of the one given in R.
static bool isMatchingReloc(const MipsRelocationEntry &X,
const ELFRelocationEntry &R,
unsigned MatchingType) {
static FindBestPredicateResult isMatchingReloc(const MipsRelocationEntry &X,
const ELFRelocationEntry &R,
unsigned MatchingType) {
if (X.R.Type == MatchingType && X.R.OriginalSymbol == R.OriginalSymbol) {
if (!X.Matched &&
X.R.OriginalAddend == R.OriginalAddend)