diff options
-rw-r--r-- | unittests/Support/ErrorOrTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/unittests/Support/ErrorOrTest.cpp b/unittests/Support/ErrorOrTest.cpp index 1f80aa0..8ce7160 100644 --- a/unittests/Support/ErrorOrTest.cpp +++ b/unittests/Support/ErrorOrTest.cpp @@ -56,6 +56,7 @@ struct InvalidArgError { std::string ArgName; }; +#if LLVM_HAS_CXX11_STDLIB namespace llvm { template<> struct ErrorOrUserDataTraits<InvalidArgError> : std::true_type { @@ -76,3 +77,4 @@ TEST(ErrorOr, UserErrorData) { EXPECT_EQ("adena", t4().getError<InvalidArgError>().ArgName); } } // end anon namespace +#endif |