Skip to content

Commit 1252e4c

Browse files
committed
format
1 parent 8c5a9d9 commit 1252e4c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/SPIRV/SPIRVWriter.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,11 +1476,14 @@ SPIRVValue *LLVMToSPIRVBase::transConstant(Value *V) {
14761476
auto *TransPointerOperand = transValue(GEP->getPointerOperand(), nullptr);
14771477
// Determine the expected pointer type from the GEP source element type.
14781478
Type *GepSourceElemTy = GEP->getSourceElementType();
1479-
SPIRVType *ExpectedPtrTy = transPointerType(GepSourceElemTy, GEP->getPointerAddressSpace());
1479+
SPIRVType *ExpectedPtrTy =
1480+
transPointerType(GepSourceElemTy, GEP->getPointerAddressSpace());
14801481

1481-
// Ensure the base pointer's type matches the GEP's effective source element type.
1482+
// Ensure the base pointer's type matches the GEP's effective source
1483+
// element type.
14821484
if (TransPointerOperand->getType() != ExpectedPtrTy) {
1483-
TransPointerOperand = BM->addUnaryInst(OpBitcast, ExpectedPtrTy, TransPointerOperand, nullptr);
1485+
TransPointerOperand = BM->addUnaryInst(OpBitcast, ExpectedPtrTy,
1486+
TransPointerOperand, nullptr);
14841487
}
14851488

14861489
std::vector<SPIRVWord> Ops = {TransPointerOperand->getId()};

0 commit comments

Comments
 (0)