summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2017-09-13 20:02:24 +0000
committerVedant Kumar <vsk@apple.com>2017-09-13 20:02:24 +0000
commite7d85688c657d65a5e8bfbefb0a74ee9352f85f1 (patch)
tree4e034c73470387ce571c3eb99ddff4521eaf5ef6
parent9c37d8c18bef494aebae912ba50c7da805b2b1b1 (diff)
downloadbcm5719-llvm-e7d85688c657d65a5e8bfbefb0a74ee9352f85f1.tar.gz
bcm5719-llvm-e7d85688c657d65a5e8bfbefb0a74ee9352f85f1.zip
[unittests] Speculative fix for changes introduced in rL313156
llvm-svn: 313181
-rw-r--r--lldb/unittests/ObjectFile/ELF/TestObjectFileELF.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/unittests/ObjectFile/ELF/TestObjectFileELF.cpp b/lldb/unittests/ObjectFile/ELF/TestObjectFileELF.cpp
index e9b3e9fcf23..36220f0f57c 100644
--- a/lldb/unittests/ObjectFile/ELF/TestObjectFileELF.cpp
+++ b/lldb/unittests/ObjectFile/ELF/TestObjectFileELF.cpp
@@ -15,6 +15,7 @@
#include "lldb/Core/Section.h"
#include "lldb/Host/HostInfo.h"
#include "unittests/Utility/Helpers/TestUtilities.h"
+#include "llvm/ADT/Optional.h"
#include "llvm/Support/FileUtilities.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/Program.h"
@@ -61,7 +62,8 @@ TEST_F(ObjectFileELFTest, SectionsResolveConsistently) {
llvm::FileRemover remover(obj);
const char *args[] = {YAML2OBJ, yaml.c_str(), nullptr};
llvm::StringRef obj_ref = obj;
- const llvm::StringRef *redirects[] = {nullptr, &obj_ref, nullptr};
+ const llvm::Optional<llvm::StringRef> redirects[] = {llvm::None, obj_ref,
+ llvm::None};
ASSERT_EQ(0, llvm::sys::ExecuteAndWait(YAML2OBJ, args, nullptr, redirects));
uint64_t size;
ASSERT_NO_ERROR(llvm::sys::fs::file_size(obj, size));
OpenPOWER on IntegriCloud