diff options
Diffstat (limited to 'lib/IR/DebugLoc.cpp')
-rw-r--r-- | lib/IR/DebugLoc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/DebugLoc.cpp b/lib/IR/DebugLoc.cpp index 3168ec6944a3..b7e3f0c6779e 100644 --- a/lib/IR/DebugLoc.cpp +++ b/lib/IR/DebugLoc.cpp @@ -163,7 +163,7 @@ void DebugLoc::reparentDebugInfo(Instruction &I, DISubprogram *OrigSP, // Fix up debug variables to point to NewSP. auto reparentVar = [&](DILocalVariable *Var) { - return DILocalVariable::getDistinct( + return DILocalVariable::get( Ctx, cast<DILocalScope>( reparentScope(Ctx, Var->getScope(), OrigSP, NewSP, Cache)), |