From: Gabor Marton Date: Thu, 24 Jan 2019 16:27:21 +0000 (+0000) Subject: Fix failing buildbots X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a41fa7f346d299e6511e9137c0af1b5250fddb66;p=clang Fix failing buildbots Fix remaining unittest errors caused by __attribute__((no_caller_saved_registers)) Related commit which caused the buildbots to fail: rL352050 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@352060 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/AST/StructuralEquivalenceTest.cpp b/unittests/AST/StructuralEquivalenceTest.cpp index b0748b0738..919856f4ad 100644 --- a/unittests/AST/StructuralEquivalenceTest.cpp +++ b/unittests/AST/StructuralEquivalenceTest.cpp @@ -378,7 +378,7 @@ TEST_F(StructuralEquivalenceFunctionTest, FunctionsWithDifferentNoreturnAttr) { EXPECT_TRUE(testStructuralMatch(t)); } -// These calling conventions may not be available on certain platforms. +// These attributes may not be available on certain platforms. #if defined(__x86_64__) && defined(__linux__) TEST_F(StructuralEquivalenceFunctionTest, FunctionsWithDifferentCallingConventions) { @@ -388,7 +388,6 @@ TEST_F(StructuralEquivalenceFunctionTest, Lang_C); EXPECT_FALSE(testStructuralMatch(t)); } -#endif TEST_F(StructuralEquivalenceFunctionTest, FunctionsWithDifferentSavedRegsAttr) { auto t = makeNamedDecls( @@ -397,6 +396,7 @@ TEST_F(StructuralEquivalenceFunctionTest, FunctionsWithDifferentSavedRegsAttr) { Lang_C); EXPECT_FALSE(testStructuralMatch(t)); } +#endif struct StructuralEquivalenceCXXMethodTest : StructuralEquivalenceTest { };