Fix warnings from test added in r301562 on Windows (when built without exceptions).

llvm-svn: 301571
This commit is contained in:
Frederich Munch 2017-04-27 17:33:50 +00:00
parent 96d6ca7e8c
commit d0c0700f92
1 changed files with 10 additions and 0 deletions

View File

@ -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;