mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-21 03:28:31 +00:00
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
This commit is contained in:
parent
6bf3e46aa8
commit
f25b003523
@ -30,8 +30,8 @@ protected:
|
||||
/*isVarArg=*/false);
|
||||
F = Function::Create(FTy, Function::ExternalLinkage, "", M.get());
|
||||
BB = BasicBlock::Create(getGlobalContext(), "", F);
|
||||
GV = new GlobalVariable(Type::getFloatTy(getGlobalContext()), true,
|
||||
GlobalValue::ExternalLinkage);
|
||||
GV = new GlobalVariable(*M, Type::getFloatTy(getGlobalContext()), true,
|
||||
GlobalValue::ExternalLinkage, 0);
|
||||
}
|
||||
|
||||
virtual void TearDown() {
|
||||
|
Loading…
Reference in New Issue
Block a user