Skip to content

Commit 7658688

Browse files
authored
[NFC][SPIRV] fix missing uppercase for var name (#67438)
Typo fix. Signed-off-by: Nathan Gauër <[email protected]>
1 parent f8734c7 commit 7658688

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,15 +1299,15 @@ bool SPIRVInstructionSelector::selectExtractElt(Register ResVReg,
12991299
bool SPIRVInstructionSelector::selectGEP(Register ResVReg,
13001300
const SPIRVType *ResType,
13011301
MachineInstr &I) const {
1302-
const bool isGEPInBounds = I.getOperand(2).getImm();
1302+
const bool IsGEPInBounds = I.getOperand(2).getImm();
13031303

13041304
// OpAccessChain could be used for OpenCL, but the SPIRV-LLVM Translator only
13051305
// relies on PtrAccessChain, so we'll try not to deviate. For Vulkan however,
13061306
// we have to use Op[InBounds]AccessChain.
13071307
const unsigned Opcode = STI.isVulkanEnv()
1308-
? (isGEPInBounds ? SPIRV::OpInBoundsAccessChain
1308+
? (IsGEPInBounds ? SPIRV::OpInBoundsAccessChain
13091309
: SPIRV::OpAccessChain)
1310-
: (isGEPInBounds ? SPIRV::OpInBoundsPtrAccessChain
1310+
: (IsGEPInBounds ? SPIRV::OpInBoundsPtrAccessChain
13111311
: SPIRV::OpPtrAccessChain);
13121312

13131313
auto Res = BuildMI(*I.getParent(), I, I.getDebugLoc(), TII.get(Opcode))

0 commit comments

Comments
 (0)