]> granicus.if.org Git - clang/commitdiff
Fix failing buildbots
authorGabor Marton <martongabesz@gmail.com>
Thu, 24 Jan 2019 16:27:21 +0000 (16:27 +0000)
committerGabor Marton <martongabesz@gmail.com>
Thu, 24 Jan 2019 16:27:21 +0000 (16:27 +0000)
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

unittests/AST/StructuralEquivalenceTest.cpp

index b0748b07389804789f2765ac4688d9b9220fd4d8..919856f4ade531f6a88c2965f8e508a1e83096dc 100644 (file)
@@ -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 {
 };