[llvm] 064c2e7 - Fix failing TableGen tests

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 6 10:08:03 PST 2024


Author: Krzysztof Parzyszek
Date: 2024-03-06T12:07:41-06:00
New Revision: 064c2e7579228389c8a6b78ee40280c319935715

URL: https://github.com/llvm/llvm-project/commit/064c2e7579228389c8a6b78ee40280c319935715
DIFF: https://github.com/llvm/llvm-project/commit/064c2e7579228389c8a6b78ee40280c319935715.diff

LOG: Fix failing TableGen tests

Added: 
    

Modified: 
    llvm/test/TableGen/directive1.td
    llvm/test/TableGen/directive2.td

Removed: 
    


################################################################################
diff  --git a/llvm/test/TableGen/directive1.td b/llvm/test/TableGen/directive1.td
index aa47d7ee666d02..3184f625ead928 100644
--- a/llvm/test/TableGen/directive1.td
+++ b/llvm/test/TableGen/directive1.td
@@ -370,9 +370,8 @@ def TDL_DirA : Directive<"dira"> {
 // IMPL-NEXT:    switch (Dir) {
 // IMPL-NEXT:    case llvm::tdl::Directive::TDLD_dira:
 // IMPL-NEXT:      return llvm::tdl::Association::None;
-// IMPL-NEXT:    default:
-// IMPL-NEXT:      llvm_unreachable("Unexpected directive");
 // IMPL-NEXT:    } // switch(Dir)
+// IMPL-NEXT:    llvm_unreachable("Unexpected directive");
 // IMPL-NEXT:  }
 // IMPL-EMPTY:
 // IMPL-NEXT:  #endif // GEN_DIRECTIVES_IMPL

diff  --git a/llvm/test/TableGen/directive2.td b/llvm/test/TableGen/directive2.td
index 90f9c45b5e15bd..d6fa4835c8dfdc 100644
--- a/llvm/test/TableGen/directive2.td
+++ b/llvm/test/TableGen/directive2.td
@@ -301,9 +301,8 @@ def TDL_DirA : Directive<"dira"> {
 // IMPL-NEXT:    switch (Dir) {
 // IMPL-NEXT:    case llvm::tdl::Directive::TDLD_dira:
 // IMPL-NEXT:      return llvm::tdl::Association::Block;
-// IMPL-NEXT:    default:
-// IMPL-NEXT:      llvm_unreachable("Unexpected directive");
 // IMPL-NEXT:    } // switch(Dir)
+// IMPL-NEXT:    llvm_unreachable("Unexpected directive");
 // IMPL-NEXT:  }
 // IMPL-EMPTY:
 // IMPL-NEXT:  #endif // GEN_DIRECTIVES_IMPL


        


More information about the llvm-commits mailing list