[llvm] [NFC][SPIRV] fix missing uppercase for var name (PR #67438)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 26 08:00:18 PDT 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-spir-v

<details>
<summary>Changes</summary>

Typo fix.

---
Full diff: https://github.com/llvm/llvm-project/pull/67438.diff


1 Files Affected:

- (modified) llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp (+3-3) 


``````````diff
diff --git a/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp b/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
index 028258d73a3e9cc..035989f2fe571b2 100644
--- a/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
+++ b/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
@@ -1299,15 +1299,15 @@ bool SPIRVInstructionSelector::selectExtractElt(Register ResVReg,
 bool SPIRVInstructionSelector::selectGEP(Register ResVReg,
                                          const SPIRVType *ResType,
                                          MachineInstr &I) const {
-  const bool isGEPInBounds = I.getOperand(2).getImm();
+  const bool IsGEPInBounds = I.getOperand(2).getImm();
 
   // OpAccessChain could be used for OpenCL, but the SPIRV-LLVM Translator only
   // relies on PtrAccessChain, so we'll try not to deviate. For Vulkan however,
   // we have to use Op[InBounds]AccessChain.
   const unsigned Opcode = STI.isVulkanEnv()
-                              ? (isGEPInBounds ? SPIRV::OpInBoundsAccessChain
+                              ? (IsGEPInBounds ? SPIRV::OpInBoundsAccessChain
                                                : SPIRV::OpAccessChain)
-                              : (isGEPInBounds ? SPIRV::OpInBoundsPtrAccessChain
+                              : (IsGEPInBounds ? SPIRV::OpInBoundsPtrAccessChain
                                                : SPIRV::OpPtrAccessChain);
 
   auto Res = BuildMI(*I.getParent(), I, I.getDebugLoc(), TII.get(Opcode))

``````````

</details>


https://github.com/llvm/llvm-project/pull/67438


More information about the llvm-commits mailing list