OSDN Git Service
(root)
/
android-x86
/
external-llvm-project.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2bb26d
)
Use .empty() instead of .size() == 0 (NFC)
author
Mehdi Amini
<joker.eph@gmail.com>
Sat, 30 May 2020 03:36:22 +0000
(
03:36
+0000)
committer
Mehdi Amini
<joker.eph@gmail.com>
Sat, 30 May 2020 03:36:22 +0000
(
03:36
+0000)
Cleanup / Fix a clang-tidy warning
mlir/lib/Transforms/BufferPlacement.cpp
patch
|
blob
|
history
diff --git
a/mlir/lib/Transforms/BufferPlacement.cpp
b/mlir/lib/Transforms/BufferPlacement.cpp
index
60f49d4
..
337e26e
100644
(file)
--- a/
mlir/lib/Transforms/BufferPlacement.cpp
+++ b/
mlir/lib/Transforms/BufferPlacement.cpp
@@
-392,7
+392,7
@@
struct BufferPlacementPass
// If the Dealloc position is at the terminator operation of the block,
// then the value should escape from a deallocation.
if (!nextOp) {
- assert(deallocs.
size() == 0
&&
+ assert(deallocs.
empty()
&&
"There should be no dealloc for the returned buffer");
continue;
}