failed();
}
- if (using_split_dwarf) {
+ if (using_split_dwarf && tmp_dwo) {
if (stat(tmp_dwo, &st) != 0) {
cc_log("Compiler didn't produce a split dwarf file");
stats_update(STATS_NOOUTPUT);
}
}
- if (generating_coverage) {
+ if (generating_coverage && tmp_cov) {
// GCC won't generate notes if there is no code.
if (stat(tmp_cov, &st) != 0 && errno == ENOENT) {
FILE *f = fopen(cached_cov, "wb");
}
}
- if (generating_stackusage) {
+ if (generating_stackusage && tmp_su) {
// GCC won't generate notes if there is no code.
if (stat(tmp_su, &st) != 0 && errno == ENOENT) {
FILE *f = fopen(cached_su, "wb");
arch_args[i]);
if (i != arch_args_size - 1) {
free(object_hash);
+ object_hash = NULL;
}
args_pop(args, 1);
}