ccc: Bug fix, output can be NULL.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62108 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/ccc/ccclib/Tools.py b/tools/ccc/ccclib/Tools.py
index 4156efa..7d8e2d8 100644
--- a/tools/ccc/ccclib/Tools.py
+++ b/tools/ccc/ccclib/Tools.py
@@ -395,7 +395,7 @@
# which doesn't introduce a dependency on the output argument
# we are given.
outputOpt = arglist.getLastArg(arglist.parser.oOption)
- if outputOpt is output:
+ if outputOpt and outputOpt is output:
cmd_args.append('-auxbase-strip')
cmd_args.append(arglist.getValue(outputOpt))
else: