diff options
author | Jay Foad <jay.foad@gmail.com> | 2011-04-21 19:59:12 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2011-04-21 19:59:12 +0000 |
commit | ea324f154b050ba5cb8bc25de77ba185ea81d8d7 (patch) | |
tree | 20e6048f3ae8fb6169df7079938cc4d8c078fb06 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 70597d4e5012bc63146847e688dec61d5abfae7f (diff) | |
download | bcm5719-llvm-ea324f154b050ba5cb8bc25de77ba185ea81d8d7.tar.gz bcm5719-llvm-ea324f154b050ba5cb8bc25de77ba185ea81d8d7.zip |
PR9214: Convert Metadata API to use ArrayRef.
llvm-svn: 129929
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index e10e285274d..0320446ba4d 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -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)); } } |