Fixed compiling with llvm rev > 77732

This commit is contained in:
Tomas Lindquist Olsen 2009-08-01 18:23:52 +02:00
parent a75873da1c
commit c69e5a5c83
2 changed files with 2 additions and 2 deletions

View file

@ -90,7 +90,7 @@ LLGlobalVariable * IrStruct::getClassInfoSymbol()
#if LLVM_REV < 77733
llvm::MetadataBase* metadata = gIR->context().getMDNode(mdVals, CD_NumFields);
#else
llvm::MetadataBase* metadata = MDNode::get(Context, mdVals, CD_NumFields);
llvm::MetadataBase* metadata = llvm::MDNode::get(gIR->context(), mdVals, CD_NumFields);
#endif
// Insert it into the module
std::string metaname = CD_PREFIX + initname;