[PATCH] D83468: [Debuginfo] Fix for PR46653
    Jaydeep Chauhan via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Aug 18 11:40:57 PDT 2020
    
    
  
Jac1494 added a comment.
> The IRTranslator and Legalizer do not set the line number, they're supposed to just forward the line number it already has.
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp:2183
  // We only emit constants into the entry block from here. To prevent jumpy
   // debug behaviour set the line to 0.
   if (const DebugLoc &DL = Inst.getDebugLoc())
     EntryBuilder->setDebugLoc(
         DebugLoc::get(0, 0, DL.getScope(), DL.getInlinedAt()));
   else
     EntryBuilder->setDebugLoc(DebugLoc());
@arsenm Seems like it is creating not forwarding...?
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83468/new/
https://reviews.llvm.org/D83468
    
    
More information about the llvm-commits
mailing list