We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f210021 commit 6379e0dCopy full SHA for 6379e0d
IGC/VectorCompiler/lib/GenXCodeGen/GenXGEPLowering.cpp
@@ -194,9 +194,9 @@ Value *GenXGEPLowering::visitGetElementPtrInst(GetElementPtrInst &GEP) {
194
}
195
196
PointerValue = Builder->CreatePtrToInt(PtrOp, IntPtrTy);
197
- auto *PTI = dyn_cast<PtrToIntInst>(PointerValue);
198
- if (auto *NewPTI = visitPtrToIntInst(*PTI))
199
- PointerValue = NewPTI;
+ if (auto *PTI = dyn_cast<PtrToIntInst>(PointerValue))
+ if (auto *NewPTI = visitPtrToIntInst(*PTI))
+ PointerValue = NewPTI;
200
201
unsigned PtrMathSizeInBits =
202
DL->getPointerSizeInBits(PtrTy->getAddressSpace());
0 commit comments