]> granicus.if.org Git - clang/commitdiff
ccc: Fix broken assertion.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 12 Mar 2009 15:59:34 +0000 (15:59 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 12 Mar 2009 15:59:34 +0000 (15:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66793 91177308-0d34-0410-b5e6-96231b3b80d8

tools/ccc/ccclib/Tools.py

index 5ae8fddf9f0a91ede579bc80595a0e2d3f97ad9a..56e2032ddbfe936608055673c696fb8bf63c386f 100644 (file)
@@ -1272,7 +1272,8 @@ class LipoTool(Tool):
 
     def constructJob(self, phase, arch, jobs, inputs,
                      output, outputType, arglist, linkingOutput):
-        assert outputType is Types.ImageType
+
+        assert outputType in (Types.ObjectType, Types.ImageType)
 
         cmd_args = ['-create']
         cmd_args.extend(arglist.render(output))