Author: hokein
Date: Thu Sep  1 07:17:28 2016
New Revision: 280359

URL: http://llvm.org/viewvc/llvm-project?rev=280359&view=rev
Log:
[include-fixer] Fix an undefined variable exception in vim script when there is
only one candidate header.

Modified:
    clang-tools-extra/trunk/include-fixer/tool/clang-include-fixer.py

Modified: clang-tools-extra/trunk/include-fixer/tool/clang-include-fixer.py
URL: 
http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/include-fixer/tool/clang-include-fixer.py?rev=280359&r1=280358&r2=280359&view=diff
==============================================================================
--- clang-tools-extra/trunk/include-fixer/tool/clang-include-fixer.py (original)
+++ clang-tools-extra/trunk/include-fixer/tool/clang-include-fixer.py Thu Sep  
1 07:17:28 2016
@@ -149,6 +149,7 @@ def main():
     return
 
   try:
+    selected = unique_headers[0]
     inserted_header_infos = header_infos
     if len(unique_headers) > 1:
       selected = GetUserSelection(


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to