diff options
Diffstat (limited to 'llvm/lib/VMCore/IRBuilder.cpp')
-rw-r--r-- | llvm/lib/VMCore/IRBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/IRBuilder.cpp b/llvm/lib/VMCore/IRBuilder.cpp index 0b4a10925a2..4c0299c6fcf 100644 --- a/llvm/lib/VMCore/IRBuilder.cpp +++ b/llvm/lib/VMCore/IRBuilder.cpp @@ -43,7 +43,7 @@ void IRBuilderBase::SetCurrentDebugLocation(MDNode *L) { void IRBuilderBase::SetInstDebugLocation(Instruction *I) const { if (CurDbgLocation) - Context.getMetadata().addMD(DbgMDKind, CurDbgLocation, I); + I->setMetadata(DbgMDKind, CurDbgLocation); } const Type *IRBuilderBase::getCurrentFunctionReturnType() const { |