diff options
| author | Sunil Srivastava <sunil_srivastava@playstation.sony.com> | 2019-07-19 21:38:34 +0000 |
|---|---|---|
| committer | Sunil Srivastava <sunil_srivastava@playstation.sony.com> | 2019-07-19 21:38:34 +0000 |
| commit | f4038e75d20257742063826fd0adc2971b3e2367 (patch) | |
| tree | 26a9ed304ebcde3dfb9fe1212d43101d33bdfd13 /clang/unittests | |
| parent | 7b5a54e369035a5754be2e836b7b583b3db8c884 (diff) | |
| download | bcm5719-llvm-f4038e75d20257742063826fd0adc2971b3e2367.tar.gz bcm5719-llvm-f4038e75d20257742063826fd0adc2971b3e2367.zip | |
Disallow most calling convention attributes on PS4
PS4 now only allows "cdecl", and its equivalent on PS4, "sysv_abi".
Differential Revision: https://reviews.llvm.org/D64780
llvm-svn: 366617
Diffstat (limited to 'clang/unittests')
| -rw-r--r-- | clang/unittests/Tooling/RecursiveASTVisitorTests/LambdaExpr.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/unittests/Tooling/RecursiveASTVisitorTests/LambdaExpr.cpp b/clang/unittests/Tooling/RecursiveASTVisitorTests/LambdaExpr.cpp index 560cdf95c0e..f2006fcfc96 100644 --- a/clang/unittests/Tooling/RecursiveASTVisitorTests/LambdaExpr.cpp +++ b/clang/unittests/Tooling/RecursiveASTVisitorTests/LambdaExpr.cpp @@ -86,6 +86,8 @@ TEST(RecursiveASTVisitor, VisitsLambdaExprAndImplicitClass) { } TEST(RecursiveASTVisitor, VisitsAttributedLambdaExpr) { + if (llvm::Triple(llvm::sys::getDefaultTargetTriple()).isPS4()) + return; // PS4 does not support fastcall. LambdaExprVisitor Visitor; Visitor.ExpectMatch("", 1, 12); EXPECT_TRUE(Visitor.runOver( |

