Fix 'enumeral and non-enumeral type in conditional expression' gcc warning. NFCI.

llvm-svn: 320254
This commit is contained in:
Simon Pilgrim 2017-12-09 16:19:18 +00:00
parent 3d0be4f507
commit a335e1e29d
1 changed files with 1 additions and 1 deletions

View 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);