Displaying 3 results from an estimated 3 matches for "hasdescriptor".
2016 Feb 25
0
Heap problems with 3.8.0rc2 in combination with vs2015 sp1
...ausing it to flow
into the else part.
void User::operator delete(void *Usr) {
// Hung off uses use a single Use* before the User, while other subclasses
// use a Use[] allocated prior to the user.
User *Obj = static_cast<User *>(Usr);
if (Obj->HasHungOffUses) {
assert(!Obj->HasDescriptor && "not supported!");
Use **HungOffOperandList = static_cast<Use **>(Usr) - 1;
// drop the hung off uses.
Use::zap(*HungOffOperandList, *HungOffOperandList +
Obj->NumUserOperands,
/* Delete */ true);
::operator delete(HungOffOperandList);
}...
2016 Feb 26
2
Heap problems with 3.8.0rc2 in combination with vs2015 sp1
...gt;
> void User::operator delete(void *Usr) {
> // Hung off uses use a single Use* before the User, while other
> subclasses
> // use a Use[] allocated prior to the user.
> User *Obj = static_cast<User *>(Usr);
> if (Obj->HasHungOffUses) {
> assert(!Obj->HasDescriptor && "not supported!");
>
> Use **HungOffOperandList = static_cast<Use **>(Usr) - 1;
> // drop the hung off uses.
> Use::zap(*HungOffOperandList, *HungOffOperandList +
> Obj->NumUserOperands,
> /* Delete */ true);
> ::operat...
2016 Feb 25
2
Heap problems with 3.8.0rc2 in combination with vs2015 sp1
I made the llvm::Function() constructor public (for testing purpose) and
used the non-overloaded new.
auto func = ::new llvm::Function(...)
if (func) func->eraseFromParent();
And the heap corruption is gone! Did something changed in llvm::User::new
between 3.7.1 and 3.8.0 ?
I found a bug in llvm ?
On Thu, Feb 25, 2016 at 12:10 PM, koffie drinker <gekkekoe at gmail.com> wrote:
> I