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 | ec9186bcf975c9ffa3ec7ca97867f0ec6eb55115 (patch) | |
tree | db8554c796ee7cfdd8623cb453582d95510d76b5 /lib/VMCore/DebugLoc.cpp | |
parent | ae5fbeec23cff833cad9e6b2a638efd1f48bef49 (diff) |
PR9214: Convert Metadata API to use ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129932 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/DebugLoc.cpp')
-rw-r--r-- | lib/VMCore/DebugLoc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/DebugLoc.cpp b/lib/VMCore/DebugLoc.cpp index 35691627f4..520333cbbc 100644 --- a/lib/VMCore/DebugLoc.cpp +++ b/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. |