[LLVMdev] CreateOr no matching member error

Caldarale, Charles R Chuck.Caldarale at unisys.com
Fri Aug 16 06:59:28 PDT 2013


> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
> On Behalf Of Rasha Omar
> Subject: [LLVMdev] CreateOr no matching member error

> For the following code:
>     Type * type = IntegerType::getInt32Ty(getGlobalContext());     
>     IRBuilder<> builder(BB);
>     std::set<Value *> Vset;
>     Value * Vresult=0;  
>     for(std::set<Value*>::iterator Vit=Vset.begin();Vit!=Vset.end();Vit++)
>       {
>         Vresult=builder.CreateOr(Vit, Vresult, "WaitOr");
>       }
> error: no matching member function for call to 'CreateOr'
>                 Vresult=builder.CreateOr(Vit, Vresult, "WaitOr");
> Which input is wrong in the CreateOr() ?

Vit is not of type Value*.  Try *Vit in the CreateOr() call.

 - Chuck





More information about the llvm-dev mailing list