Author: vedantk Date: Wed Sep 13 13:02:24 2017 New Revision: 313181 URL: http://llvm.org/viewvc/llvm-project?rev=313181&view=rev Log: [unittests] Speculative fix for changes introduced in rL313156
Modified: lldb/trunk/unittests/ObjectFile/ELF/TestObjectFileELF.cpp Modified: lldb/trunk/unittests/ObjectFile/ELF/TestObjectFileELF.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/unittests/ObjectFile/ELF/TestObjectFileELF.cpp?rev=313181&r1=313180&r2=313181&view=diff ============================================================================== --- lldb/trunk/unittests/ObjectFile/ELF/TestObjectFileELF.cpp (original) +++ lldb/trunk/unittests/ObjectFile/ELF/TestObjectFileELF.cpp Wed Sep 13 13:02:24 2017 @@ -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, SectionsResolv 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)); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits