[PATCH] D25994: Set default values before conditionals
Mandeep Singh Grang via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 31 14:03:58 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL285635: Set default values before conditionals (authored by mgrang).
Changed prior to commit:
https://reviews.llvm.org/D25994?vs=75900&id=76475#toc
Repository:
rL LLVM
https://reviews.llvm.org/D25994
Files:
lnt/trunk/lnt/testing/util/compilers.py
Index: lnt/trunk/lnt/testing/util/compilers.py
===================================================================
--- lnt/trunk/lnt/testing/util/compilers.py
+++ lnt/trunk/lnt/testing/util/compilers.py
@@ -64,6 +64,7 @@
# Parse out the compiler's version line and the path to the "cc1" binary.
cc1_binary = None
version_ln = None
+ cc_name = cc_version_num = cc_build_string = cc_extra = ""
for ln in cc_version.split('\n'):
if ' version ' in ln:
version_ln = ln
@@ -90,12 +91,10 @@
m = re.match(r'(.*) version ([^ ]*)', version_ln)
if m is not None:
cc_name,cc_version_num = m.groups()
- cc_build_string = cc_extra = ""
else:
error("unable to determine compiler version: %r: %r" % (
cc, version_ln))
cc_name = "unknown"
- cc_version_num = cc_build_string = cc_extra = ""
# Compute normalized compiler name and type. We try to grab source
# revisions, branches, and tags when possible.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25994.76475.patch
Type: text/x-patch
Size: 1089 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161031/55cd0f74/attachment.bin>
More information about the llvm-commits
mailing list