Skip to content

Commit 425fc61

Browse files
committed
up
Signed-off-by: Chen, Sheng S <[email protected]>
1 parent e6e67c2 commit 425fc61

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

clang/lib/DPCT/DPCT.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,9 +1446,11 @@ int runDPCT(int argc, const char **argv) {
14461446
std::string Err = getDpctTermStr();
14471447
StringRef ErrStr = Err;
14481448
// Avoid the "Visual Studio version" error on windows platform.
1449-
if (ErrStr.find("error:") == ErrStr.rfind("error:") && (ErrStr.contains("no function template matches function template specialization 'this_multi_grid'") ||
1450-
ErrStr.contains(
1451-
"error -- unsupported Microsoft Visual Studio version"))) {
1449+
if (ErrStr.find("error:") == ErrStr.rfind("error:") &&
1450+
(ErrStr.contains("no function template matches function "
1451+
"template specialization 'this_multi_grid'") ||
1452+
ErrStr.contains(
1453+
"error -- unsupported Microsoft Visual Studio version"))) {
14521454
break;
14531455
}
14541456
if (ErrStr.contains("use of undeclared identifier")) {

0 commit comments

Comments
 (0)