Skip to content

Commit cbac4b1

Browse files
author
Davide Italiano
committed
[IRGenSIL] Add a comment explaining why we're resetting the location.
1 parent 216c382 commit cbac4b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/IRGen/IRGenSIL.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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());

0 commit comments

Comments
 (0)