NoFolder class problem

Hi all,

while I was playing a little bit with IRBuilder I ended up with something like this when included NoFolder.h

/work/llvm/include/llvm/User.h: In member function ‘llvm::Value* llvm::NoFolder::CreateExtractElement(llvm::Constant*, llvm::Constant*) const’:
/work/llvm/include/llvm/User.h:48: error: ‘static void* llvm::User::operator new(size_t)’ is private

/work/llvm/include/llvm/Support/NoFolder.h:177: error: within this context
/work/llvm/include/llvm/Instructions.h:1177: error: ‘llvm::ExtractElementInst::ExtractElementInst(llvm::Value*, llvm::Value*, const llvm::Twine&, llvm::Instruction*)’ is private
/work/llvm/include/llvm/Support/NoFolder.h:177: error: within this context

Patch attached
Artur

nofolder.patch (473 Bytes)

Appled as r89606, thanks.

- Daniel