projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Simplify creation of a bunch of ArrayRefs by using None, makeArrayRef or just letting...
[oota-llvm.git]
/
include
/
llvm
/
ADT
/
TinyPtrVector.h
diff --git
a/include/llvm/ADT/TinyPtrVector.h
b/include/llvm/ADT/TinyPtrVector.h
index 5669b2a81a4027cede649ba36151e736c12b99b7..e158f9d278b207074a186bca8b58cffa4523d5c2 100644
(file)
--- a/
include/llvm/ADT/TinyPtrVector.h
+++ b/
include/llvm/ADT/TinyPtrVector.h
@@
-99,7
+99,7
@@
public:
// implicit conversion operator to ArrayRef.
operator ArrayRef<EltTy>() const {
if (Val.isNull())
- return
ArrayRef<EltTy>()
;
+ return
None
;
if (Val.template is<EltTy>())
return *Val.getAddrOfPtr1();
return *Val.template get<VecTy*>();