Do not leak on error (Coverity).

This commit is contained in:
Axel Naumann 2015-06-02 21:54:47 +02:00 committed by sftnight
parent 15dda8ada2
commit aa24ff9e20

View File

@ -629,6 +629,7 @@ namespace {
const clang::driver::ArgStringList* CC1Args
= GetCC1Arguments(Diags.get(), Compilation.get());
if (CC1Args == NULL) {
delete Invocation;
return 0;
}
clang::CompilerInvocation::CreateFromArgs(*Invocation, CC1Args->data() + 1,