From 08e593895d51653bcd8659a14fafed381659f406 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sat, 2 Nov 2019 16:45:06 +0000 Subject: [PATCH] Fix uninitialized variable warning. NFCI. --- llvm/tools/llvm-ar/llvm-ar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/tools/llvm-ar/llvm-ar.cpp b/llvm/tools/llvm-ar/llvm-ar.cpp index c9cf217f7688..c70b8814b285 100644 --- a/llvm/tools/llvm-ar/llvm-ar.cpp +++ b/llvm/tools/llvm-ar/llvm-ar.cpp @@ -1092,7 +1092,7 @@ static int ar_main(int argc, char **argv) { cl::ExpandResponseFiles(Saver, cl::TokenizeGNUCommandLine, Argv); for (size_t i = 1; i < Argv.size(); ++i) { StringRef Arg = Argv[i]; - const char *match; + const char *match = nullptr; auto MatchFlagWithArg = [&](const char *expected) { size_t len = strlen(expected); if (Arg == expected) {