[all-commits] [llvm/llvm-project] 0c3049: SystemInitializerCommon fix compilation on linux

Pavel Labath via All-commits all-commits at lists.llvm.org
Fri Oct 18 04:46:09 PDT 2019

  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0c304917740228968d2daf1a414e7ec3f94cd171
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2019-10-18 (Fri, 18 Oct 2019)

  Changed paths:
    M lldb/source/Initialization/SystemInitializerCommon.cpp

  Log Message:
  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

llvm-svn: 375221

More information about the All-commits mailing list