[llvm] 7dc644f - [CodeGen] Temporary disable the unreachable

Bill Wendling via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 17 12:32:52 PDT 2023


Author: Bill Wendling
Date: 2023-10-17T12:32:41-07:00
New Revision: 7dc644fc463a8f42f54d63a99c3a4579df2c3859

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

LOG: [CodeGen] Temporary disable the unreachable

It should be there, but we need all platforms that use stack protectors
to implement it first.

Added: 
    

Modified: 
    llvm/include/llvm/CodeGen/TargetInstrInfo.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/CodeGen/TargetInstrInfo.h b/llvm/include/llvm/CodeGen/TargetInstrInfo.h
index 6c3e02b2f594050..8e7499ac626a747 100644
--- a/llvm/include/llvm/CodeGen/TargetInstrInfo.h
+++ b/llvm/include/llvm/CodeGen/TargetInstrInfo.h
@@ -2100,8 +2100,12 @@ class TargetInstrInfo : public MCInstrInfo {
                                   MachineBasicBlock::iterator Iter,
                                   DebugLoc &DL,
                                   bool AllowSideEffects = true) const {
+#if 0
+    // FIXME: This should exist once all platforms that use stack protectors
+    // implements it.
     llvm_unreachable(
         "Target didn't implement TargetInstrInfo::buildClearRegister!");
+#endif
   }
 
   /// Return true if the function can safely be outlined from.


        


More information about the llvm-commits mailing list