Fix warnings from test added in r301562 on Windows (when built without exceptions).
llvm-svn: 301571
diff --git a/llvm/unittests/Support/DynamicLibrary/PipSqueak.cxx b/llvm/unittests/Support/DynamicLibrary/PipSqueak.cxx
index 1de8523..c54de67 100644
--- a/llvm/unittests/Support/DynamicLibrary/PipSqueak.cxx
+++ b/llvm/unittests/Support/DynamicLibrary/PipSqueak.cxx
@@ -8,7 +8,17 @@
//===----------------------------------------------------------------------===//
#include "PipSqueak.h"
+
+#ifdef _WIN32
+// Disable warnings from inclusion of xlocale & exception
+#pragma warning(push)
+#pragma warning(disable: 4530)
+#pragma warning(disable: 4577)
#include <string>
+#pragma warning(pop)
+#else
+#include <string>
+#endif
struct Global {
std::string *Str;