【发布时间】:2014-11-14 16:37:06
【问题描述】:
为什么会报错
While deleting: i32 %
Use still stuck around after Def is destroyed: %in = alloca [3000 x i32], align 4
opt: Value.cpp:79: virtual llvm::Value::~Value(): Assertion `use_empty() && "Uses remain
when a value is destroyed!"' failed.
当我运行包含这些行的 LLVM Pass 时 . . .
Type *t3=dyn_cast<Type>(ArrayType::get(Type::getInt32Ty(context),50));
AllocaInst *al2=new AllocaInst(t3,"ar",ins1);
。 . . 这里我尝试分配一个新数组。
【问题讨论】:
标签: llvm