PR9214: Convert Metadata API to use ArrayRef.
llvm-svn: 129929
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user