[llvm-commits] [llvm] r173004 - /llvm/trunk/unittests/Support/ErrorOrTest.cpp
Michael J. Spencer
bigcheesegs at gmail.com
Sun Jan 20 21:39:07 PST 2013
Author: mspencer
Date: Sun Jan 20 23:39:07 2013
New Revision: 173004
URL: http://llvm.org/viewvc/llvm-project?rev=173004&view=rev
Log:
[Support] Make test C++03.
Modified:
llvm/trunk/unittests/Support/ErrorOrTest.cpp
Modified: llvm/trunk/unittests/Support/ErrorOrTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/ErrorOrTest.cpp?rev=173004&r1=173003&r2=173004&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/ErrorOrTest.cpp (original)
+++ llvm/trunk/unittests/Support/ErrorOrTest.cpp Sun Jan 20 23:39:07 2013
@@ -56,15 +56,14 @@
std::string ArgName;
};
-#if LLVM_HAS_CXX11_STDLIB
namespace llvm {
template<>
-struct ErrorOrUserDataTraits<InvalidArgError> : std::true_type {
+struct ErrorOrUserDataTraits<InvalidArgError> : true_type {
static error_code error() {
return make_error_code(errc::invalid_argument);
}
};
-} // end namespace lld
+} // end namespace llvm
ErrorOr<int> t4() {
return InvalidArgError("adena");
@@ -77,4 +76,3 @@
EXPECT_EQ("adena", t4().getError<InvalidArgError>().ArgName);
}
} // end anon namespace
-#endif
More information about the llvm-commits
mailing list