mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Fix some of the memcheck errors found in the JIT unittests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95856 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -18,14 +18,16 @@ namespace {
|
||||
|
||||
TEST(OpaqueTypeTest, RegisterWithContext) {
|
||||
LLVMContext C;
|
||||
LLVMContextImpl *pImpl = C.pImpl;
|
||||
LLVMContextImpl *pImpl = C.pImpl;
|
||||
|
||||
EXPECT_EQ(0u, pImpl->OpaqueTypes.size());
|
||||
// 1 refers to the AlwaysOpaqueTy allocated in the Context's constructor and
|
||||
// destroyed in the destructor.
|
||||
EXPECT_EQ(1u, pImpl->OpaqueTypes.size());
|
||||
{
|
||||
PATypeHolder Type = OpaqueType::get(C);
|
||||
EXPECT_EQ(1u, pImpl->OpaqueTypes.size());
|
||||
EXPECT_EQ(2u, pImpl->OpaqueTypes.size());
|
||||
}
|
||||
EXPECT_EQ(0u, pImpl->OpaqueTypes.size());
|
||||
EXPECT_EQ(1u, pImpl->OpaqueTypes.size());
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
Reference in New Issue
Block a user