Displaying 5 results from an estimated 5 matches for "pointervaltype".
2008 Sep 08
3
[LLVMdev] Problems when refining type
Hi
I'm using the llvm-c wrapper, and trying to build some recursive types
(using released 2.3).
I get an assert on trying to create a second opaque pointer type after
refining a first.
The first time through creating an opaque pointer type, a new type is
created and returned from PointerType::get, but the second time,
ValueType (the opaque type) is found in the PointerTypes map, which
seems
2010 Mar 23
2
[LLVMdev] How to avoid memory leaks
...or::~CodeCreator() (CodeCreator.cpp:38)
==20504== by 0x4195BD: main (main.cpp:54)
==20504==
==20504== 56 bytes in 1 blocks are possibly lost in loss record 134 of 205
==20504== at 0x4C2596C: operator new(unsigned long) (vg_replace_malloc.c:220)
==20504== by 0x906392: std::_Rb_tree<llvm::PointerValType,
std::pair<llvm::PointerValType const, llvm::PATypeHolder>,
std::_Select1st<std::pair<llvm::PointerValType const,
llvm::PATypeHolder> >, std::less<llvm::PointerValType>,
std::allocator<std::pair<llvm::PointerValType const,
llvm::PATypeHolder> > >::_M_insert_(s...
2004 Nov 10
3
[LLVMdev] LLVM and the "static initialization order fiasco"
Hello, I'm getting bitten by the "static initialization order fiasco"
http://www.parashift.com/c++-faq-lite/ctors.html#faq-10.12
The static data causing the problem is the static
TypeMap<PointerValType, PointerType> PointerTypes; and other typemaps.
The background is that in our product we are using an overridden new
operator to track memory allocations. This system is intialized at the
beginning of main(), and any 'new' before that will not be tracked. At
the end of main any memor...
2009 Jul 10
0
[LLVMdev] void llvm::PATypeHolder::addRef(): Assertion `Ty && "Type Holder has a null type!"' failed.
...e/llvm/AbstractTypeUser.h:143
#5 0x00000000015828d8 in llvm::DerivedType::dropAllTypeUses
(this=0x1d777d0) at Type.cpp:469
#6 0x0000000001584b1f in llvm::DerivedType::unlockedRefineAbstractTypeTo
(this=0x1d777d0, NewType=0x1d5b050) at Type.cpp:1454
#7 0x000000000158b84c in llvm::TypeMap<llvm::PointerValType,
llvm::PointerType>::RefineAbstractType (this=0x1d5afe0, Ty=0x1d777d0,
OldType=0x1d77780, NewType=0x1d54190) at Type.cpp:884
#8 0x0000000001584fe2 in llvm::PointerType::refineAbstractType
(this=0x1d777d0, OldType=0x1d77780, NewType=0x1d54190) at Type.cpp:1575
#9 0x0000000001584b8f in llvm:...
2006 May 09
1
[LLVMdev] Memory leaks in LLVM
...32== by 0x83F39E5: llvm::OpaqueType::get() (DerivedTypes.h:363)
==10132== by 0x84B5197: llvm::DerivedType::dropAllTypeUses() ( Type.cpp
:481)
==10132== by 0x84B69F6:
llvm::DerivedType::refineAbstractTypeTo(llvm::Type const*) (Type.cpp:1288)
==10132== by 0x852D604: llvm::TypeMap<llvm::PointerValType,
llvm::PointerType>::RefineAbstractType(llvm::PointerType*, llvm::DerivedType
const*, llvm::Type const*) ( Type.cpp:857)
==10132== by 0x84B6CC6:
llvm::PointerType::refineAbstractType(llvm::DerivedType const*, llvm::Type
const*) (Type.cpp:1395)
==10132== by 0x84B6A83:
llvm::DerivedType::ref...