[llvm] r255698 - [Sparc] Tweak r255668: Use llvm_unreachable.

James Y Knight via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 15 15:07:16 PST 2015


Author: jyknight
Date: Tue Dec 15 17:07:16 2015
New Revision: 255698

URL: http://llvm.org/viewvc/llvm-project?rev=255698&view=rev
Log:
[Sparc] Tweak r255668: Use llvm_unreachable.

Modified:
    llvm/trunk/lib/Target/Sparc/SparcISelLowering.cpp

Modified: llvm/trunk/lib/Target/Sparc/SparcISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/SparcISelLowering.cpp?rev=255698&r1=255697&r2=255698&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/SparcISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/Sparc/SparcISelLowering.cpp Tue Dec 15 17:07:16 2015
@@ -527,7 +527,7 @@ LowerFormalArguments_32(SDValue Chain,
                          "pass indirectly");
     } else {
       // We shouldn't see any other value types here.
-      assert(false && "Unexpected ValVT encountered in frame lowering.");
+      llvm_unreachable("Unexpected ValVT encountered in frame lowering.");
     }
     InVals.push_back(Load);
   }




More information about the llvm-commits mailing list