[llvm] r304252 - This patch should fix various clang warnings and a use of to_string

Eric Beckmann via llvm-commits llvm-commits at lists.llvm.org
Tue May 30 15:29:06 PDT 2017


Author: ecbeckmann
Date: Tue May 30 17:29:06 2017
New Revision: 304252

URL: http://llvm.org/viewvc/llvm-project?rev=304252&view=rev
Log:
This patch should fix various clang warnings and a use of to_string
which isn't support before c++11.

Modified:
    llvm/trunk/lib/Object/WindowsResource.cpp

Modified: llvm/trunk/lib/Object/WindowsResource.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Object/WindowsResource.cpp?rev=304252&r1=304251&r2=304252&view=diff
==============================================================================
--- llvm/trunk/lib/Object/WindowsResource.cpp (original)
+++ llvm/trunk/lib/Object/WindowsResource.cpp Tue May 30 17:29:06 2017
@@ -13,6 +13,7 @@
 
 #include "llvm/Object/WindowsResource.h"
 #include "llvm/Support/COFF.h"
+#include <sstream>
 #include <system_error>
 
 namespace llvm {
@@ -213,7 +214,7 @@ void WindowsResourceParser::TreeNode::pr
     Child.second->print(Writer, Child.first);
   }
   for (auto const &Child : IDChildren) {
-    Child.second->print(Writer, std::to_string(Child.first));
+    Child.second->print(Writer, to_string(Child.first));
   }
 }
 




More information about the llvm-commits mailing list