Skip to content

Commit

Permalink
fix build break
Browse files Browse the repository at this point in the history
  • Loading branch information
farzonl committed Jun 4, 2024
1 parent 7bd21a6 commit 3eba000
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clang/test/CodeGenHLSL/loops/unroll.hlsl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %clang_cc1 -std=hlsl2021 -finclude-default-header -x hlsl -triple \
// RUN: dxil-pc-shadermodel6.3-library -O3 %s -emit-llvm -o - | FileCheck %s
// RUN: dxil-pc-shadermodel6.3-library -disable-llvm-passes %s -emit-llvm -o - | FileCheck %s

/*** for ***/
void for_count()
Expand Down
2 changes: 1 addition & 1 deletion clang/test/SemaHLSL/Loops/unroll.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ void unroll_no_vars() {
}

void unroll_arg_count() {
[unroll(2,4)] // expected-error {{'unroll' attribute takes one argument}}
[unroll(2,4)] // expected-error {{'unroll' attribute takes no more than 1 argument}}
for(int i=0; i<100; i++);
}

Expand Down

0 comments on commit 3eba000

Please sign in to comment.