Skip to content

Commit 9a8cf9d

Browse files
committed
Apply suggestions
1 parent b969f88 commit 9a8cf9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

options_compile.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@ std::string EffectiveOptionsFilter::processOptions(const OpenCLArgList &args,
287287

288288
auto parseClExt = [&](const std::string &clExtStr) {
289289
llvm::StringRef clExtRef(clExtStr);
290-
if (!clExtRef.consume_front("-cl-ext="))
291-
return;
290+
assert(clExtRef.consume_front("-cl-ext=") &&
291+
"clExtRef doesn't start with \"-cl-ext\" prefix");
292292
llvm::SmallVector<llvm::StringRef, 32> parsedExt;
293293
clExtRef.split(parsedExt, ',');
294294
for (auto &ext : parsedExt) {

0 commit comments

Comments
 (0)