Skip to content

Commit 958552a

Browse files
committed
address CR issue
1 parent e0b2b9c commit 958552a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Utils/SYCLUtils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
namespace llvm {
1515

1616
void writeSYCLStringTable(const SYCLStringTable &Table, raw_ostream &OS) {
17-
assert(Table.size() > 0 && "table should contain at least column titles");
18-
assert(Table[0].size() > 0 && "table should be non-empty");
17+
assert(!Table.empty() && "table should contain at least column titles");
18+
assert(!Table[0].empty() && "table should be non-empty");
1919
OS << '[' << join(Table[0].begin(), Table[0].end(), "|") << "]\n";
2020
for (size_t I = 1, E = Table.size(); I != E; ++I) {
2121
assert(Table[I].size() == Table[0].size() && "row's size should be equal");

0 commit comments

Comments
 (0)