Skip to content

Commit 75a71af

Browse files
ViacheslavRbigcbot
authored andcommitted
Fixing newly created PHI DebugLoc in ResolveGAS pass.
1 parent 37c9e8b commit 75a71af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

IGC/Compiler/CISACodeGen/ResolveGAS.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,7 @@ bool GASPropagator::visitPHINode(PHINode& PN) {
500500
for (unsigned i = 0; i != e; ++i)
501501
NewPN->addIncoming(NewIncomingValues[i], PN.getIncomingBlock(i));
502502
NewPN->takeName(&PN);
503+
NewPN->setDebugLoc(PN.getDebugLoc());
503504

504505
BuilderType::InsertPointGuard Guard(*IRB);
505506
IRB->SetInsertPoint(PN.getParent()->getFirstNonPHI());

0 commit comments

Comments
 (0)