Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoppens committed Jan 13, 2024
1 parent 0f410a3 commit 455a8ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 2 additions & 1 deletion lib/Target/CBackend/CBackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2053,7 +2053,8 @@ static void defineAligns(raw_ostream &Out) {

static void defineFunctionAlign(raw_ostream &Out) {
Out << "#ifdef _MSC_VER\n";
Out << "#define __FUNCTIONALIGN__(X) /* WARNING: THIS FEATURE IS NOT SUPPORTED BY MSVC! */ \n";
Out << "#define __FUNCTIONALIGN__(X) /* WARNING: THIS FEATURE IS NOT "
"SUPPORTED BY MSVC! */ \n";
Out << "#else\n";
Out << "#define __FUNCTIONALIGN__(X) __attribute__((aligned(X)))\n";
Out << "#endif\n\n";
Expand Down
7 changes: 3 additions & 4 deletions test/cpp_tests/test_virtual_function_calls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ int main() {

#else

/* MSVC doesn't support adding alignment to functions, treat it as an expected failure */
/* MSVC doesn't support adding alignment to functions, treat it as an expected
* failure */

int main() {
return 25;
}
int main() { return 25; }

#endif

0 comments on commit 455a8ee

Please sign in to comment.