File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -428,7 +428,7 @@ class SILLocation {
428428 static DebugLoc decode (SourceLoc Loc, const SourceManager &SM);
429429
430430 // / Return the decoded debug location.
431- DebugLoc decodeDebugLoc (const SourceManager &SM) const {
431+ LLVM_NODISCARD DebugLoc decodeDebugLoc (const SourceManager &SM) const {
432432 return isDebugInfoLoc () ? Loc.DebugInfoLoc
433433 : decode (getDebugSourceLoc (), SM);
434434 }
Original file line number Diff line number Diff line change @@ -737,6 +737,8 @@ class IRGenSILFunction :
737737 return ;
738738
739739 llvm::IRBuilder<> ZeroInitBuilder (AI->getNextNode ());
740+
741+ // No debug location is how LLVM marks prologue instructions.
740742 ZeroInitBuilder.SetCurrentDebugLocation (nullptr );
741743 auto *BC =
742744 ZeroInitBuilder.CreateBitCast (AI, IGM.OpaquePtrTy ->getPointerTo ());
You can’t perform that action at this time.
0 commit comments