[LLVMdev] CreateOr no matching member error

Tim Northover t.p.northover at gmail.com
Fri Aug 16 06:57:40 PDT 2013


Hi Rasha,

>     Value * Vresult=0;
>     for(std::set<Value*>::iterator Vit=Vset.begin();Vit!=Vset.end();Vit++)
>       {
>         Vresult=builder.CreateOr(Vit, Vresult, "WaitOr");
>       }
>
> Which input is wrong in the CreateOr() ?

The first two. Vit needs to be dereferenced "*Vit" and Vresult needs
to be initialised to a real value ("ConstantInt::get(SomeType, 0)"
might make sense) before the first iteration of the loop.

"Vit" is what's causing the compile-time failure though. The other one
will just go wrong at runtime.

Cheers.

Tim.



More information about the llvm-dev mailing list