summaryrefslogtreecommitdiffstats
path: root/llvm/unittests
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-01-08 22:03:39 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-01-08 22:03:39 +0000
commit1c704b4a2ef643983af0eb8d718e91dbf91810f3 (patch)
tree220536e93d9c49b11f5de7cd99e2da4504a3ef37 /llvm/unittests
parent7f82bc590d2b97d214c69897c0115c2147e0ad7b (diff)
downloadbcm5719-llvm-1c704b4a2ef643983af0eb8d718e91dbf91810f3.tar.gz
bcm5719-llvm-1c704b4a2ef643983af0eb8d718e91dbf91810f3.zip
Use getError and remove the error_code operator.
llvm-svn: 198799
Diffstat (limited to 'llvm/unittests')
-rw-r--r--llvm/unittests/Support/ErrorOrTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/ErrorOrTest.cpp b/llvm/unittests/Support/ErrorOrTest.cpp
index 4c5eed050f9..98174e8cd70 100644
--- a/llvm/unittests/Support/ErrorOrTest.cpp
+++ b/llvm/unittests/Support/ErrorOrTest.cpp
@@ -25,7 +25,7 @@ TEST(ErrorOr, SimpleValue) {
a = t2();
EXPECT_FALSE(a);
- EXPECT_EQ(errc::invalid_argument, a);
+ EXPECT_EQ(errc::invalid_argument, a.getError());
#ifdef EXPECT_DEBUG_DEATH
EXPECT_DEBUG_DEATH(*a, "Cannot get value when an error exists");
#endif
OpenPOWER on IntegriCloud