PR9214: Convert Metadata API to use ArrayRef.

llvm-svn: 129929
This commit is contained in:
Jay Foad
2011-04-21 19:59:12 +00:00
parent 70597d4e50
commit ea324f154b
5 changed files with 8 additions and 7 deletions

View File

@@ -241,7 +241,7 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy,
CGM.getModule().getOrInsertNamedMetadata("opencl.kernels");
llvm::Value *Op = Fn;
OpenCLMetadata->addOperand(llvm::MDNode::get(Context, &Op, 1));
OpenCLMetadata->addOperand(llvm::MDNode::get(Context, Op));
}
}