No need to check the same condition twice.

llvm-svn: 99716
This commit is contained in:
Dan Gohman 2010-03-27 16:36:08 +00:00
parent eff5583908
commit 99ac24d1e3
1 changed files with 1 additions and 1 deletions

View File

@ -611,7 +611,7 @@ int main(int argc, char **argv, char **envp) {
args[2] = tmp_output.c_str();
args[3] = 0;
if (0 == sys::Program::ExecuteAndWait(prog, args, 0,0,0,0, &ErrMsg)) {
if (tmp_output.isBitcodeFile() || tmp_output.isBitcodeFile()) {
if (tmp_output.isBitcodeFile()) {
sys::Path target(BitcodeOutputFilename);
target.eraseFromDisk();
if (tmp_output.renamePathOnDisk(target, &ErrMsg))