diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp index 339430cf6197..6077f8e61c18 100644 --- a/clang/lib/CodeGen/CGExprScalar.cpp +++ b/clang/lib/CodeGen/CGExprScalar.cpp @@ -1034,8 +1034,8 @@ Value *ScalarExprEmitter::VisitBinLAnd(const BinaryOperator *E) { } } - llvm::BasicBlock *ContBlock = llvm::BasicBlock::Create("land_cont"); - llvm::BasicBlock *RHSBlock = llvm::BasicBlock::Create("land_rhs"); + llvm::BasicBlock *ContBlock = CGF.createBasicBlock("land_cont"); + llvm::BasicBlock *RHSBlock = CGF.createBasicBlock("land_rhs"); llvm::BasicBlock *OrigBlock = Builder.GetInsertBlock(); Builder.CreateCondBr(LHSCond, RHSBlock, ContBlock);