summaryrefslogtreecommitdiff
path: root/lld/unittests
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2016-03-31 01:13:04 +0000
committerPete Cooper <peter_cooper@apple.com>2016-03-31 01:13:04 +0000
commitc2282bf9eb2b5354fd480bde3423ddb629584853 (patch)
tree843a5b35a03ae731adcae7f0e7552dffb0511301 /lld/unittests
parent6fa9bb84fe4403090977440ca8648e1a8e146204 (diff)
Use Expected<T> instead of ErrorOr<T>in yaml reader. NFC
Diffstat (limited to 'lld/unittests')
-rw-r--r--lld/unittests/MachOTests/MachONormalizedFileYAMLTests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/unittests/MachOTests/MachONormalizedFileYAMLTests.cpp b/lld/unittests/MachOTests/MachONormalizedFileYAMLTests.cpp
index 6b75c3480c9..211c3b1ac89 100644
--- a/lld/unittests/MachOTests/MachONormalizedFileYAMLTests.cpp
+++ b/lld/unittests/MachOTests/MachONormalizedFileYAMLTests.cpp
@@ -21,7 +21,7 @@ using lld::mach_o::normalized::Relocation;
static std::unique_ptr<NormalizedFile> fromYAML(StringRef str) {
std::unique_ptr<MemoryBuffer> mb(MemoryBuffer::getMemBuffer(str));
- ErrorOr<std::unique_ptr<NormalizedFile>> r
+ llvm::Expected<std::unique_ptr<NormalizedFile>> r
= lld::mach_o::normalized::readYaml(mb);
EXPECT_FALSE(!r);
return std::move(*r);