patch: don't emit llvm or bitcode on errors

Simple patch to prevent output file generation when the input has errors.
Fixes <rdar://problem/6080040>

- Daniel

no-emit-on-error.patch (501 Bytes)

Looks great to me, please apply.

Thanks Daniel.

-Chris

Hi,

wouldn't it make more sense to use hasErrorOccurred() instead of
getNumErrors() ?

Gr.

Matthijs