[PATCH] D41003: Silence GCC 7 warning by using an enum class.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 8 03:10:15 PST 2017


fhahn created this revision.

This silences the following GCC7 warning:

  lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp:142:30: warning:
  enumeral and non-enumeral type in conditional expression [-Wextra]
       return F != Colors.end() ? F->second : None;
                  ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~


https://reviews.llvm.org/D41003

Files:
  lib/Target/Hexagon/HexagonISelDAGToDAGHVX.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41003.126110.patch
Type: text/x-patch
Size: 5445 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171208/fa968a03/attachment.bin>


More information about the llvm-commits mailing list