[include-fixer] Fix an undefined variable exception in vim script when there is
authorHaojian Wu <hokein@google.com>
Thu, 1 Sep 2016 12:17:28 +0000 (12:17 +0000)
committerHaojian Wu <hokein@google.com>
Thu, 1 Sep 2016 12:17:28 +0000 (12:17 +0000)
only one candidate header.

llvm-svn: 280359

clang-tools-extra/include-fixer/tool/clang-include-fixer.py

index b942cbb..6b0df0d 100644 (file)
@@ -149,6 +149,7 @@ def main():
     return
 
   try:
+    selected = unique_headers[0]
     inserted_header_infos = header_infos
     if len(unique_headers) > 1:
       selected = GetUserSelection(