diff options
author | Jay Foad <jay.foad@gmail.com> | 2011-04-21 19:59:31 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@gmail.com> | 2011-04-21 19:59:31 +0000 |
commit | 5514afe6b2e7aef761600967d3ebe89295fdf690 (patch) | |
tree | fa584f2dc1c268de212a9d02a69e3996c9c597d7 /llvm/lib/VMCore/DebugLoc.cpp | |
parent | ea324f154b050ba5cb8bc25de77ba185ea81d8d7 (diff) | |
download | bcm5719-llvm-5514afe6b2e7aef761600967d3ebe89295fdf690.tar.gz bcm5719-llvm-5514afe6b2e7aef761600967d3ebe89295fdf690.zip |
PR9214: Convert Metadata API to use ArrayRef.
llvm-svn: 129932
Diffstat (limited to 'llvm/lib/VMCore/DebugLoc.cpp')
-rw-r--r-- | llvm/lib/VMCore/DebugLoc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/DebugLoc.cpp b/llvm/lib/VMCore/DebugLoc.cpp index 35691627f49..520333cbbcf 100644 --- a/llvm/lib/VMCore/DebugLoc.cpp +++ b/llvm/lib/VMCore/DebugLoc.cpp @@ -109,7 +109,7 @@ MDNode *DebugLoc::getAsMDNode(const LLVMContext &Ctx) const { ConstantInt::get(Int32, getLine()), ConstantInt::get(Int32, getCol()), Scope, IA }; - return MDNode::get(Ctx2, &Elts[0], 4); + return MDNode::get(Ctx2, Elts); } /// getFromDILocation - Translate the DILocation quad into a DebugLoc. |