Skip to content

Commit 2e1452d

Browse files
committed
Split HLSL's comment from C++'s
1 parent ca8255b commit 2e1452d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/lib/Sema/SemaChecking.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11678,8 +11678,9 @@ static void AnalyzeImplicitConversions(
1167811678

1167911679
// Propagate whether we are in a C++ list initialization expression.
1168011680
// If so, we do not issue warnings for implicit int-float conversion
11681-
// precision loss, because C++11 narrowing already handles it. HLSL's
11682-
// initialization lists are special, so they shouldn't observe the C++
11681+
// precision loss, because C++11 narrowing already handles it.
11682+
//
11683+
// HLSL's initialization lists are special, so they shouldn't observe the C++
1168311684
// behavior here.
1168411685
bool IsListInit =
1168511686
Item.IsListInit || (isa<InitListExpr>(OrigE) &&

0 commit comments

Comments
 (0)