[clang] [clang-linker-wrapper] Re-use type returned from 'PointerType::getUnqual(C)' (NFC) (PR #73374)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 24 15:05:15 PST 2023


================
@@ -458,44 +459,39 @@ void createRegisterFatbinFunction(Module &M, GlobalVariable *FatbinDesc,
   DtorFunc->setSection(".text.startup");
 
   // Get the __cudaRegisterFatBinary function declaration.
-  auto *RegFatTy = FunctionType::get(PointerType::getUnqual(C)->getPointerTo(),
-                                     PointerType::getUnqual(C),
+  auto *RegFatTy = FunctionType::get(PtrTy, PtrTy,
                                      /*isVarArg*/ false);
----------------
jhuber6 wrote:

Can you fix these while you're at it, they should use the LLVM-style block comments.
```suggestion
                                     /*isVarArg=*/false);
```

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


More information about the cfe-commits mailing list