Displaying 2 results from an estimated 2 matches for "ahmadnouralizadeh".
2018 Aug 08
3
Error Calling eraseFromParent()
...e in Debug Mode or is it simply null pointer dereference?
> On a side note, usually when doing transforms similar to yours I use
> IRBuilder’s CreateXXX followed by a ReplaceInstWithInst which works
> perfectly fine for me.
>
> Zhang
>
> 在 2018年8月9日,00:29,Ahmad Nouralizadeh <ahmadnouralizadeh at gmail.com> 写道:
>
> Hi. Thanks. I changed the code but the problem exists. This is my new code
> which is again very simple:
> ...
> bool runOnFunction(Function &F) override {
>
> vector<Instruction *> dels;
> dels.clear();
>
> for (inst_iterator It = in...
2018 Aug 08
2
Error Calling eraseFromParent()
Hi. Thanks. I changed the code but the problem exists. This is my new code
which is again very simple:
...
bool runOnFunction(Function &F) override {
vector<Instruction *> dels;
dels.clear();
for (inst_iterator It = inst_begin(&F), Ie = inst_end(&F); It != Ie;) {
Instruction *I = &*(It++);
if (auto* op = dyn_cast<BinaryOperator>(I)) {
IRBuilder<NoFolder>