[llvm] r335107 - [Support] Add missing includes of <system_error> for std::error_code

Martin Storsjo via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 20 02:17:19 PDT 2018


Author: mstorsjo
Date: Wed Jun 20 02:17:19 2018
New Revision: 335107

URL: http://llvm.org/viewvc/llvm-project?rev=335107&view=rev
Log:
[Support] Add missing includes of <system_error> for std::error_code

This fixes compilation with MinGW after SVN r333798, which added
a few functions within _WIN32 ifdefs, functions returning
std::error_code. Include everything that is needed instead of
hoping that this header being inclued transitively (which it apparently
is in MSVC builds).

Modified:
    llvm/trunk/include/llvm/Support/ConvertUTF.h
    llvm/trunk/include/llvm/Support/Path.h

Modified: llvm/trunk/include/llvm/Support/ConvertUTF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/ConvertUTF.h?rev=335107&r1=335106&r2=335107&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/ConvertUTF.h (original)
+++ llvm/trunk/include/llvm/Support/ConvertUTF.h Wed Jun 20 02:17:19 2018
@@ -92,6 +92,7 @@
 
 #include <cstddef>
 #include <string>
+#include <system_error>
 
 // Wrap everything in namespace llvm so that programs can link with llvm and
 // their own version of the unicode libraries.

Modified: llvm/trunk/include/llvm/Support/Path.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Path.h?rev=335107&r1=335106&r2=335107&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Path.h (original)
+++ llvm/trunk/include/llvm/Support/Path.h Wed Jun 20 02:17:19 2018
@@ -20,6 +20,7 @@
 #include "llvm/ADT/iterator.h"
 #include "llvm/Support/DataTypes.h"
 #include <iterator>
+#include <system_error>
 
 namespace llvm {
 namespace sys {




More information about the llvm-commits mailing list