]> granicus.if.org Git - clang/commitdiff
ccc: Bug fix, output can be NULL.
authorDaniel Dunbar <daniel@zuster.org>
Mon, 12 Jan 2009 22:19:59 +0000 (22:19 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 12 Jan 2009 22:19:59 +0000 (22:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62108 91177308-0d34-0410-b5e6-96231b3b80d8

tools/ccc/ccclib/Tools.py

index 4156efa03b4d790d9f765278a713880392347b66..7d8e2d82c10867636f362331fe75c8056f69b855 100644 (file)
@@ -395,7 +395,7 @@ class Darwin_X86_CompileTool(Tool):
         # 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: