llvm.org GIT mirror llvm / 9540e47
Fix a memory leak and a cross module reference. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@325712 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 2 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
437437 LLVMBasicBlockRef ElseBB = DeclareBB(LLVMValueAsBasicBlock(Else));
438438 LLVMValueRef Then = LLVMGetOperand(Src, 2);
439439 LLVMBasicBlockRef ThenBB = DeclareBB(LLVMValueAsBasicBlock(Then));
440 Dst = LLVMBuildCondBr(Builder, Cond, ThenBB, ElseBB);
440 Dst = LLVMBuildCondBr(Builder, CloneValue(Cond), ThenBB, ElseBB);
441441 break;
442442 }
443443 case LLVMSwitch:
948948 fputs(Str, stdout);
949949
950950 LLVMDisposeMessage(Str);
951 LLVMDisposeModule(Src);
951952 LLVMDisposeModule(M);
952953 LLVMContextDispose(Ctx);
953954