From 68686a9f7a1b89a9a71ac889b533895327eb89ee Mon Sep 17 00:00:00 2001 From: Gabor Marton Date: Thu, 24 Jan 2019 16:27:21 +0000 Subject: [PATCH] Fix failing buildbots Fix remaining unittest errors caused by __attribute__((no_caller_saved_registers)) Related commit which caused the buildbots to fail: rL352050 llvm-svn: 352060 --- clang/unittests/AST/StructuralEquivalenceTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/unittests/AST/StructuralEquivalenceTest.cpp b/clang/unittests/AST/StructuralEquivalenceTest.cpp index b0748b073898..919856f4ade5 100644 --- a/clang/unittests/AST/StructuralEquivalenceTest.cpp +++ b/clang/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 { };