1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 12:43:36 +01:00
llvm-mirror/include/llvm/ADT
Daniel Sanders d287284d36 [adt] Twine(nullptr) derefs the nullptr. Add a deleted Twine(std::nullptr_t)
Summary:
nullptr can implicitly convert to Twine as Twine(nullptr) in which case it
resolves to Twine(const char *). This constructor derefs the pointer and
therefore doesn't work. Add a Twine(std::nullptr_t) = delete to make it a
compile time error.

It turns out that in-tree usage of Twine(nullptr) is confined to a single
private method in IRBuilder where foldConstant(... const Twine &Name = nullptr)
and this method is only ever called with an explicit Name argument as making it
a mandatory argument doesn't cause compile-time or run-time errors.

Reviewers: jyknight

Reviewed By: jyknight

Subscribers: dexonsmith, kristina, llvm-commits

Differential Revision: https://reviews.llvm.org/D56870

llvm-svn: 351572
2019-01-18 18:40:35 +00:00
..
AllocatorList.h
Any.h Workaround a limitation of llvm::Any when used with types that have 2018-09-19 20:45:09 +00:00
APFloat.h APFloat: allow 64-bit of payload 2018-12-10 19:27:38 +00:00
APInt.h [APInt] Add methods for saturated add and sub 2018-11-20 16:47:59 +00:00
APSInt.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
ArrayRef.h Revert "ADT: Move ArrayRef comparison operators into the class" 2018-06-28 12:10:21 +00:00
bit.h [ADT] restrict bit_cast to trivially-constructible To 2018-09-21 14:31:25 +00:00
BitmaskEnum.h
BitVector.h [ADT][BitVector] Add push_back() 2018-09-19 11:08:54 +00:00
BreadthFirstIterator.h
CachedHashString.h Add CachedHashStringRef::data(). 2018-07-10 15:10:49 +00:00
DAGDeltaAlgorithm.h
DeltaAlgorithm.h
DenseMap.h [ADT] Use explicit constructors for DenseMapPair to work around compiler issues. 2018-10-26 17:48:50 +00:00
DenseMapInfo.h [ADT] Allow llvm::hash_code as DenseMap key. 2018-06-20 13:56:25 +00:00
DenseSet.h [ADT] Fix a bug in DenseSet's initializer_list constructor. 2018-10-15 18:34:36 +00:00
DepthFirstIterator.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
edit_distance.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
EpochTracker.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
EquivalenceClasses.h
FoldingSet.h
FunctionExtras.h Fix MSVC "signed/unsigned mismatch" warning. NFCI. 2018-07-10 09:46:57 +00:00
GraphTraits.h [ADT] Add some documentation for GraphTraits. 2018-08-02 00:21:12 +00:00
Hashing.h Hashing: use 64-bit seed for hashing on all platforms. 2018-08-30 20:28:32 +00:00
ilist_base.h
ilist_iterator.h
ilist_node_base.h
ilist_node_options.h IWYU for llvm-config.h, removals. Also see r331184. 2018-04-30 15:26:01 +00:00
ilist_node.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
ilist.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
ImmutableList.h [ADT] Made numerous methods of ImmutableList const 2018-09-12 11:20:15 +00:00
ImmutableMap.h [ADT] Annotate immutable list/set/map update methods with LLVM_NODISCARD. 2018-05-31 17:32:29 +00:00
ImmutableSet.h [ADT] Annotate immutable list/set/map update methods with LLVM_NODISCARD. 2018-05-31 17:32:29 +00:00
IndexedMap.h
IntEqClasses.h
IntervalMap.h [ADT] IntervalMap: add overlaps(a, b) method 2018-12-21 13:04:34 +00:00
IntrusiveRefCntPtr.h
iterator_range.h [ADT] drop_begin: use adl_begin/adl_end. NFC. 2018-06-27 19:39:03 +00:00
iterator.h Correctly instantiate iterator_adaptor_base when defining pointer_iterator 2018-11-14 07:19:21 +00:00
MapVector.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
None.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
Optional.h [ADT] Add streaming operators for llvm::Optional 2019-01-18 12:52:03 +00:00
PackedVector.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
PointerEmbeddedInt.h
PointerIntPair.h Fix MSVC PointerUnion visualizer 2019-01-02 19:26:50 +00:00
PointerSumType.h [NFC] use bit_cast in PointerSumType 2018-09-21 18:35:32 +00:00
PointerUnion.h Use branch funnels for virtual calls when retpoline mitigation is enabled. 2018-03-09 19:11:44 +00:00
PostOrderIterator.h [DA] DivergenceAnalysis for unstructured, reducible CFGs 2018-10-18 09:38:44 +00:00
PriorityQueue.h
PriorityWorklist.h
SCCIterator.h Revert "CallGraphSCCPass: iterate over all functions." 2018-07-13 16:32:31 +00:00
ScopedHashTable.h
ScopeExit.h
Sequence.h
SetOperations.h
SetVector.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
simple_ilist.h
SmallBitVector.h [ADT] Fix bugs in SmallBitVector. 2018-12-14 18:21:20 +00:00
SmallPtrSet.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
SmallSet.h Recommit r334887: [SmallSet] Add SmallSetIterator. 2018-07-24 10:32:54 +00:00
SmallString.h
SmallVector.h Avoid redundant reference to isPodLike in SmallVect/Optional implementation 2018-11-29 17:21:54 +00:00
SparseBitVector.h [ADT] Clean up SparseBitVector copying and make it moveable 2018-11-01 13:55:59 +00:00
SparseMultiSet.h Report fatal error in the case of out of memory 2018-02-20 05:41:26 +00:00
SparseSet.h Report fatal error in the case of out of memory 2018-02-20 05:41:26 +00:00
Statistic.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
STLExtras.h [Algorithm] Add make_const_ref corresponding to make_const_ptr 2019-01-12 15:23:30 +00:00
StringExtras.h [ADT] Support converting to lowercase string in toHex 2018-09-10 19:34:44 +00:00
StringMap.h Use uniform mechanism for OOM errors handling 2018-06-09 05:19:45 +00:00
StringRef.h [ADT] Add StringRef::rsplit(StringRef Separator). 2018-06-08 12:42:12 +00:00
StringSet.h
StringSwitch.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
TinyPtrVector.h [PM/LoopUnswitch] Add partial non-trivial unswitching for invariant 2018-06-21 06:14:03 +00:00
Triple.h [WebAssembly] COWS has been renamed to WASI. 2019-01-16 05:23:52 +00:00
Twine.h [adt] Twine(nullptr) derefs the nullptr. Add a deleted Twine(std::nullptr_t) 2019-01-18 18:40:35 +00:00
UniqueVector.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
VariadicFunction.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00