[LLVMdev] Missing :CreateFNeg() in NoFolder.h
BernardH
gmane.comp.compilers.llvm.devel at bernard-hugueney.org
Wed Nov 17 12:26:49 PST 2010
Hi,
Just to report that when I tried to compile some code with a NoFolder given as
template arg to my IRBuilder, the compiler complained with:
In file included from lang_3-llvm.cxx:33:
/usr/lib/llvm-2.8/include/llvm/Support/IRBuilder.h: In member function
‘llvm::Value* llvm::IRBuilder<preserveNames, T, Inserter>::CreateFNeg
(llvm::Value*, const llvm::Twine&) [with bool preserveNames = true,
T = llvm::NoFolder, Inserter = llvm::IRBuilderDefaultInserter<true>]’:
...
I just added
Value *CreateFNeg(Constant *C) const {
return BinaryOperator::CreateFNeg(C);
}
amongst the unary operators of NoFolder.h, and everything seemed ok.
Should I consider NoFolder unsupported ?
Best regards,
Bernard
More information about the llvm-dev
mailing list