[llvm] dcebe8a - Fix a buildbot warning triggered by 1dfb06d

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 18 09:37:58 PST 2021


Author: Philip Reames
Date: 2021-02-18T09:37:49-08:00
New Revision: dcebe8ab1e26f8ea2fc91e12a20fadc5677407a0

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

LOG: Fix a buildbot warning triggered by 1dfb06d

Added: 
    

Modified: 
    llvm/lib/CodeGen/SpillPlacement.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/SpillPlacement.cpp b/llvm/lib/CodeGen/SpillPlacement.cpp
index b1597519f6bc..6f91092097d7 100644
--- a/llvm/lib/CodeGen/SpillPlacement.cpp
+++ b/llvm/lib/CodeGen/SpillPlacement.cpp
@@ -386,9 +386,8 @@ void SpillPlacement::BlockConstraint::print(raw_ostream &OS) const {
     case PrefSpill: return "PrefSpill";
     case PrefBoth: return "PrefBoth";
     case MustSpill: return "MustSpill";
-    default:
-      llvm_unreachable("uncovered switch");
     };
+    llvm_unreachable("uncovered switch");
   };
 
   dbgs() << "{" << Number << ", "


        


More information about the llvm-commits mailing list