Commit d38219c
committed
[llvm] Migrate away from ArrayRef(std::nullopt) (NFC)
ArrayRef has a constructor that accepts std::nullopt. This
constructor dates back to the days when we still had llvm::Optional.
Since the use of std::nullopt outside the context of std::optional is
kind of abuse and not intuitive to new comers, I would like to move
away from the constructor and eventually remove it.
This patch takes care of the llvm side of the migration.1 parent a05393a commit d38219c
File tree
3 files changed
+8
-9
lines changed- llvm
- include/llvm/CodeGen
- lib/Transforms/Vectorize
3 files changed
+8
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2376 | 2376 | | |
2377 | 2377 | | |
2378 | 2378 | | |
2379 | | - | |
2380 | | - | |
| 2379 | + | |
| 2380 | + | |
2381 | 2381 | | |
2382 | 2382 | | |
2383 | 2383 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5994 | 5994 | | |
5995 | 5995 | | |
5996 | 5996 | | |
5997 | | - | |
| 5997 | + | |
5998 | 5998 | | |
5999 | 5999 | | |
6000 | 6000 | | |
| |||
13561 | 13561 | | |
13562 | 13562 | | |
13563 | 13563 | | |
13564 | | - | |
| 13564 | + | |
13565 | 13565 | | |
13566 | 13566 | | |
13567 | 13567 | | |
| |||
13602 | 13602 | | |
13603 | 13603 | | |
13604 | 13604 | | |
13605 | | - | |
| 13605 | + | |
13606 | 13606 | | |
13607 | 13607 | | |
13608 | 13608 | | |
| |||
13677 | 13677 | | |
13678 | 13678 | | |
13679 | 13679 | | |
13680 | | - | |
13681 | | - | |
| 13680 | + | |
| 13681 | + | |
13682 | 13682 | | |
13683 | 13683 | | |
13684 | 13684 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3478 | 3478 | | |
3479 | 3479 | | |
3480 | 3480 | | |
3481 | | - | |
3482 | | - | |
| 3481 | + | |
3483 | 3482 | | |
3484 | 3483 | | |
3485 | 3484 | | |
| |||
0 commit comments