Work around false -Wmissing-braces warning from old clang which has been fixed in r314838

llvm-svn: 334539
This commit is contained in:
Fangrui Song 2018-06-12 20:44:11 +00:00
parent 2aae25819e
commit 8b4b82eed4
1 changed files with 1 additions and 1 deletions

View File

@ -883,7 +883,7 @@ UbigraphViz::~UbigraphViz() {
std::string Ubiviz;
if (auto Path = llvm::sys::findProgramByName("ubiviz"))
Ubiviz = *Path;
std::array<StringRef, 2> Args = {Ubiviz, Filename};
std::array<StringRef, 2> Args{{Ubiviz, Filename}};
if (llvm::sys::ExecuteAndWait(Ubiviz, Args, llvm::None, {}, 0, 0, &ErrMsg)) {
llvm::errs() << "Error viewing graph: " << ErrMsg << "\n";