Fix 'enumeral and non-enumeral type in conditional expression' gcc warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 9 Dec 2017 16:19:18 +0000 (16:19 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 9 Dec 2017 16:19:18 +0000 (16:19 +0000)
llvm-svn: 320254

llvm/lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp

index 26bceff71f4d4a28d3edb8b8e21fcc11ab96bf7f..698d50542fc0ff19be3db7bc05c92129592d5c74 100644 (file)
@@ -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);