Skip to content

Commit

Permalink
Fix -Wpedantic warnings. NFC.
Browse files Browse the repository at this point in the history
  • Loading branch information
darkbuck committed Apr 21, 2020
1 parent 86e3b73 commit 163bd9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions llvm/lib/Transforms/InstCombine/InstCombineNegator.cpp
Expand Up @@ -319,7 +319,7 @@ LLVM_NODISCARD Value *Negator::visit(Value *V, unsigned Depth) {
}

llvm_unreachable("Can't get here. We always return from switch.");
};
}

LLVM_NODISCARD Optional<Negator::Result> Negator::run(Value *Root) {
Value *Negated = visit(Root, /*Depth=*/0);
Expand All @@ -331,7 +331,7 @@ LLVM_NODISCARD Optional<Negator::Result> Negator::run(Value *Root) {
return llvm::None;
}
return std::make_pair(ArrayRef<Instruction *>(NewInstructions), Negated);
};
}

LLVM_NODISCARD Value *Negator::Negate(bool LHSIsZero, Value *Root,
InstCombiner &IC) {
Expand Down Expand Up @@ -374,4 +374,4 @@ LLVM_NODISCARD Value *Negator::Negate(bool LHSIsZero, Value *Root,

// And return the new root.
return Res->second;
};
}

0 comments on commit 163bd9d

Please sign in to comment.