[llvm] [NVPTX] Cleanup/Refactoring in NVPTX AsmPrinter and RegisterInfo (NFC) (PR #126800)

Justin Fargnoli via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 11 14:09:03 PST 2025


================
@@ -636,20 +636,18 @@ static bool usedInGlobalVarDef(const Constant *C) {
 }
 
 static bool usedInOneFunc(const User *U, Function const *&oneFunc) {
-  if (const GlobalVariable *othergv = dyn_cast<GlobalVariable>(U)) {
+  if (const GlobalVariable *othergv = dyn_cast<GlobalVariable>(U))
----------------
justinfargnoli wrote:

```suggestion
  if (const GlobalVariable *OtherGV = dyn_cast<GlobalVariable>(U))
```

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


More information about the llvm-commits mailing list