[llvm] r320254 - Fix 'enumeral and non-enumeral type in conditional expression' gcc warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 9 08:19:18 PST 2017
Author: rksimon
Date: Sat Dec 9 08:19:18 2017
New Revision: 320254
URL: http://llvm.org/viewvc/llvm-project?rev=320254&view=rev
Log:
Fix 'enumeral and non-enumeral type in conditional expression' gcc warning. NFCI.
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp?rev=320254&r1=320253&r2=320254&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp Sat Dec 9 08:19:18 2017
@@ -139,7 +139,7 @@ private:
uint8_t getColor(Node N) {
auto F = Colors.find(N);
- return F != Colors.end() ? F->second : None;
+ return F != Colors.end() ? F->second : (uint8_t)None;
}
std::pair<bool,uint8_t> getUniqueColor(const NodeSet &Nodes);
More information about the llvm-commits
mailing list