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
diff --git a/clang/unittests/AST/StructuralEquivalenceTest.cpp b/clang/unittests/AST/StructuralEquivalenceTest.cpp
index b0748b0..919856f 100644
--- a/clang/unittests/AST/StructuralEquivalenceTest.cpp
+++ b/clang/unittests/AST/StructuralEquivalenceTest.cpp
@@ -378,7 +378,7 @@
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 @@
Lang_C);
EXPECT_FALSE(testStructuralMatch(t));
}
-#endif
TEST_F(StructuralEquivalenceFunctionTest, FunctionsWithDifferentSavedRegsAttr) {
auto t = makeNamedDecls(
@@ -397,6 +396,7 @@
Lang_C);
EXPECT_FALSE(testStructuralMatch(t));
}
+#endif
struct StructuralEquivalenceCXXMethodTest : StructuralEquivalenceTest {
};