llvm.org GIT mirror llvm / f25b003
IRTests/IRBuilderTest.cpp: Let GV added to the module. It fixes --vg-leak. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173237 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 6 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
2929 /*isVarArg=*/false);
3030 F = Function::Create(FTy, Function::ExternalLinkage, "", M.get());
3131 BB = BasicBlock::Create(getGlobalContext(), "", F);
32 GV = new GlobalVariable(Type::getFloatTy(getGlobalContext()), true,
33 GlobalValue::ExternalLinkage);
32 GV = new GlobalVariable(*M, Type::getFloatTy(getGlobalContext()), true,
33 GlobalValue::ExternalLinkage, 0);
3434 }
3535
3636 virtual void TearDown() {