Skip to content

Commit bc30e45

Browse files
committed
Fix typos and tests
1 parent 72f553a commit bc30e45

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

clang/tools/sotoc/src/TargetCode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void TargetCode::generateFunctionPrologue(TargetCodeRegion *TCR,
121121

122122
if (llvm::dyn_cast<clang::VariableArrayType>(t)) {
123123
for (int d = 0; d < dim; ++d) {
124-
Out << "unsgined long long __sotoc_vla_dim" << d << "_" << (*i)->getDeclName().getAsString() << ", ";
124+
Out << "unsigned long long __sotoc_vla_dim" << d << "_" << (*i)->getDeclName().getAsString() << ", ";
125125
}
126126
}
127127

clang/tools/sotoc/test/arrays/static_variable_length_array_3d.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ int main(){
99

1010
#pragma omp target map(tofrom:A[:size][:2][:5])
1111
{
12+
int k;
1213
int i;
1314
for(i=0; i< size; i++){
1415
for(k=0; k< 5; k++){

clang/tools/sotoc/test/arrays/static_variable_length_array_3d_sw.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ int main(){
1010
#pragma omp target map(tofrom:A[:2][:size][:5])
1111
{
1212
int i;
13+
int k;
1314
for(i=0; i< size; i++){
1415
for(k=0; k< 5; k++){
1516
A[0][i][k]=i;

0 commit comments

Comments
 (0)