[llvm] [NFC] Use F->isDeclaration instead of (*F).isDeclaration (PR #164238)
    Juan Manuel Martinez CaamaƱo via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Oct 20 04:38:05 PDT 2025
    
    
  
https://github.com/jmmartinez created https://github.com/llvm/llvm-project/pull/164238
None
>From 6888bc609eda9a408e4cbce1748205c7d3a64ca5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Juan=20Manuel=20Martinez=20Caama=C3=B1o?= <juamarti at amd.com>
Date: Mon, 20 Oct 2025 12:12:23 +0200
Subject: [PATCH] [NFC] Use F->isDeclaration instead of (*F).isDeclaration
---
 llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp b/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
index 5144fb14fa6a6..296057ee271e8 100644
--- a/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
+++ b/llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
@@ -635,7 +635,7 @@ static void collectOtherInstr(MachineInstr &MI, SPIRV::ModuleAnalysisInfo &MAI,
 void SPIRVModuleAnalysis::processOtherInstrs(const Module &M) {
   InstrTraces IS;
   for (auto F = M.begin(), E = M.end(); F != E; ++F) {
-    if ((*F).isDeclaration())
+    if (F->isDeclaration())
       continue;
     MachineFunction *MF = MMI->getMachineFunction(*F);
     assert(MF);
    
    
More information about the llvm-commits
mailing list