SystemInitializerCommon fix compilation on linux
authorPavel Labath <pavel@labath.sk>
Fri, 18 Oct 2019 11:47:23 +0000 (11:47 +0000)
committerPavel Labath <pavel@labath.sk>
Fri, 18 Oct 2019 11:47:23 +0000 (11:47 +0000)
commit0c304917740228968d2daf1a414e7ec3f94cd171
tree09886063c63c656f8c90a8010ed75a71302609f6
parent9c155985f17fd369bbba311b714fb6c01c17d66e
SystemInitializerCommon fix compilation on linux

C++ defines two overloads of std::iscntrl. One in <cctype> and one in
<locale>. On linux we seem to include both which makes the std::erase_if
call ambiguous.

Wrap std::iscntrl call in a lambda to ensure regular overload
resolution.

llvm-svn: 375221
lldb/source/Initialization/SystemInitializerCommon.cpp