[all-commits] [llvm/llvm-project] 324f5a: Make llvm::function_ref's operator bool explicit
David Blaikie via All-commits
all-commits at lists.llvm.org
Thu Mar 26 20:14:28 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 324f5a14d7cfb4922a0345d67b20b8cb5953ee82
https://github.com/llvm/llvm-project/commit/324f5a14d7cfb4922a0345d67b20b8cb5953ee82
Author: David Blaikie <dblaikie at gmail.com>
Date: 2020-03-26 (Thu, 26 Mar 2020)
Changed paths:
M llvm/include/llvm/ADT/STLExtras.h
Log Message:
-----------
Make llvm::function_ref's operator bool explicit
This can avoid all sorts of mistakes with implicit conversion
(indirectly) to int, etc. I'm quite surprise there aren't any things to
fixup with this - but I guess most uses of function_ref aren't
optional/nullable.
Commit: 819e540208d5d62e7841d0dbdef3580eecc2c2b6
https://github.com/llvm/llvm-project/commit/819e540208d5d62e7841d0dbdef3580eecc2c2b6
Author: David Blaikie <dblaikie at gmail.com>
Date: 2020-03-26 (Thu, 26 Mar 2020)
Changed paths:
M clang/lib/Basic/Targets/X86.cpp
Log Message:
-----------
Use llvm_unreachable after a fully covered/always-returning switch
Compare: https://github.com/llvm/llvm-project/compare/64fe84185602...819e540208d5
More information about the All-commits
mailing list