[all-commits] [llvm/llvm-project] bc8528: [clang-linker-wrapper] Re-use type returned from '...
Youngsuk Kim via All-commits
all-commits at lists.llvm.org
Fri Nov 24 16:22:15 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bc85284273ea1e6efbf7367f736f7982459c652b
https://github.com/llvm/llvm-project/commit/bc85284273ea1e6efbf7367f736f7982459c652b
Author: Youngsuk Kim <joseph942010 at gmail.com>
Date: 2023-11-24 (Fri, 24 Nov 2023)
Changed paths:
M clang/tools/clang-linker-wrapper/OffloadWrapper.cpp
Log Message:
-----------
[clang-linker-wrapper] Re-use type returned from 'PointerType::getUnqual(C)' (NFC) (#73374)
Multiple calls to `PointerType::getUnqual(C)`, and calls to
`Type::getPointerTo(AddrSpace=0)` on them all result in the same type.
Clean them up to re-use the same `PtrTy` variable within function
`createRegisterGlobalsFunction()`.
More information about the All-commits
mailing list