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 {
428
428
static DebugLoc decode (SourceLoc Loc, const SourceManager &SM);
429
429
430
430
// / Return the decoded debug location.
431
- DebugLoc decodeDebugLoc (const SourceManager &SM) const {
431
+ LLVM_NODISCARD DebugLoc decodeDebugLoc (const SourceManager &SM) const {
432
432
return isDebugInfoLoc () ? Loc.DebugInfoLoc
433
433
: decode (getDebugSourceLoc (), SM);
434
434
}
Original file line number Diff line number Diff line change @@ -737,6 +737,8 @@ class IRGenSILFunction :
737
737
return ;
738
738
739
739
llvm::IRBuilder<> ZeroInitBuilder (AI->getNextNode ());
740
+
741
+ // No debug location is how LLVM marks prologue instructions.
740
742
ZeroInitBuilder.SetCurrentDebugLocation (nullptr );
741
743
auto *BC =
742
744
ZeroInitBuilder.CreateBitCast (AI, IGM.OpaquePtrTy ->getPointerTo ());
You can’t perform that action at this time.
0 commit comments