[all-commits] [llvm/llvm-project] 260bae: [ADT][NFC] Use declval to suppress warning for nul...
Yeting Kuo via All-commits
all-commits at lists.llvm.org
Mon Mar 6 16:12:56 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 260bae5ba27cde110590c28941966a6e02df5325
https://github.com/llvm/llvm-project/commit/260bae5ba27cde110590c28941966a6e02df5325
Author: Yeting Kuo <yeting.kuo at sifive.com>
Date: 2023-03-07 (Tue, 07 Mar 2023)
Changed paths:
M llvm/unittests/ADT/RangeAdapterTest.cpp
Log Message:
-----------
[ADT][NFC] Use declval to suppress warning for nullptr use.
The patch uses declval instead of nullptr to suppress warning for calling member
function by nullptr. Also the patch replace is_same<*>::value with is_same_v<*>.
Reviewed By: dexonsmith, kuhar
Differential Revision: https://reviews.llvm.org/D145388
More information about the All-commits
mailing list