From 0b98b89e3afd4e1b170f4e092c292292e7797c65 Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Mon, 11 Aug 2014 18:09:32 +0000 Subject: [PATCH] ToolChains.cpp: Increase size of Lines vector in DetectDistro In a Clang bootstrap, the size of this vector was always 11. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215370 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/ToolChains.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index dfd5cb3cdb..9b880807c5 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -2796,7 +2796,7 @@ static Distro DetectDistro(llvm::Triple::ArchType Arch) { llvm::MemoryBuffer::getFile("/etc/lsb-release"); if (File) { StringRef Data = File.get()->getBuffer(); - SmallVector Lines; + SmallVector Lines; Data.split(Lines, "\n"); Distro Version = UnknownDistro; for (unsigned i = 0, s = Lines.size(); i != s; ++i) -- 2.40.0