[PATCH] D25994: Set default values before conditionals
Azharuddin Mohammed via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 26 08:48:16 PDT 2016
azharudd created this revision.
azharudd added a reviewer: cmatthews.
azharudd added a subscriber: llvm-commits.
Patch by Azharuddin Mohammed
https://reviews.llvm.org/D25994
Files:
lnt/testing/util/compilers.py
Index: lnt/testing/util/compilers.py
===================================================================
--- lnt/testing/util/compilers.py
+++ 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.75900.patch
Type: text/x-patch
Size: 1059 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161026/408cb053/attachment.bin>
More information about the llvm-commits
mailing list