Skip to content

Commit ce647ca

Browse files
MrSidimsAlexeySotkin
authored andcommitted
Apply suggestion
Signed-off-by: Dmitry Sidorov <[email protected]>
1 parent 7670633 commit ce647ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SPIRV/SPIRVWriter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1647,7 +1647,7 @@ LLVMToSPIRVBase::transValueWithoutDecoration(Value *V, SPIRVBasicBlock *BB,
16471647
SPIRVLabel *SuccessorFalse =
16481648
static_cast<SPIRVLabel *>(transValue(Branch->getSuccessor(1), BB));
16491649
if (LoopControl != spv::LoopControlMaskNone) {
1650-
Function *Fun = Branch->getParent()->getParent();
1650+
Function *Fun = Branch->getFunction();
16511651
DominatorTree DomTree(*Fun);
16521652
LoopInfo LI(DomTree);
16531653
for (const auto *LoopObj : LI.getLoopsInPreorder()) {

0 commit comments

Comments
 (0)