[PATCH] D18833: [clang-tidy] Fix infinite loop in MisplacedWideningCastCheck.
Etienne Bergeron via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 6 10:50:05 PDT 2016
etienneb created this revision.
etienneb added a reviewer: alexfh.
etienneb added a subscriber: cfe-commits.
In Release mode, the check was infinite looping over chromium code base.
It seems there is something strange with the creation of the Maps.
I believe the compiler is making some assumption with the implicit conversion from enum <-> int.
By moving the map to a standard switch/cases, we no longer allocate memory and we can keep the same behavior. For a small amount of elements, this is fine.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 9794 bytes
Desc: not available
More information about the cfe-commits