We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0b2b9c commit 958552aCopy full SHA for 958552a
llvm/lib/Transforms/Utils/SYCLUtils.cpp
@@ -14,8 +14,8 @@
14
namespace llvm {
15
16
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");
+ assert(!Table.empty() && "table should contain at least column titles");
+ assert(!Table[0].empty() && "table should be non-empty");
19
OS << '[' << join(Table[0].begin(), Table[0].end(), "|") << "]\n";
20
for (size_t I = 1, E = Table.size(); I != E; ++I) {
21
assert(Table[I].size() == Table[0].size() && "row's size should be equal");
0 commit comments