From 25df3b853bb6db0c2208f92c37863a3edc35d831 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Thu, 1 Sep 2016 12:17:28 +0000 Subject: [PATCH] [include-fixer] Fix an undefined variable exception in vim script when there is only one candidate header. llvm-svn: 280359 --- clang-tools-extra/include-fixer/tool/clang-include-fixer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/clang-tools-extra/include-fixer/tool/clang-include-fixer.py b/clang-tools-extra/include-fixer/tool/clang-include-fixer.py index b942cbb47a90..6b0df0db468f 100644 --- a/clang-tools-extra/include-fixer/tool/clang-include-fixer.py +++ b/clang-tools-extra/include-fixer/tool/clang-include-fixer.py @@ -149,6 +149,7 @@ def main(): return try: + selected = unique_headers[0] inserted_header_infos = header_infos if len(unique_headers) > 1: selected = GetUserSelection(