mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 06:25:18 +00:00
Convert assert(0) to llvm_unreachable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149849 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -16,10 +16,11 @@
|
||||
#ifndef LLVM_CODEGEN_VALUETYPES_H
|
||||
#define LLVM_CODEGEN_VALUETYPES_H
|
||||
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include "llvm/Support/MathExtras.h"
|
||||
#include <cassert>
|
||||
#include <string>
|
||||
#include "llvm/Support/DataTypes.h"
|
||||
#include "llvm/Support/MathExtras.h"
|
||||
|
||||
namespace llvm {
|
||||
class Type;
|
||||
@@ -246,13 +247,13 @@ namespace llvm {
|
||||
unsigned getSizeInBits() const {
|
||||
switch (SimpleTy) {
|
||||
case iPTR:
|
||||
assert(0 && "Value type size is target-dependent. Ask TLI.");
|
||||
llvm_unreachable("Value type size is target-dependent. Ask TLI.");
|
||||
case iPTRAny:
|
||||
case iAny:
|
||||
case fAny:
|
||||
assert(0 && "Value type is overloaded.");
|
||||
llvm_unreachable("Value type is overloaded.");
|
||||
default:
|
||||
assert(0 && "getSizeInBits called on extended MVT.");
|
||||
llvm_unreachable("getSizeInBits called on extended MVT.");
|
||||
case i1 : return 1;
|
||||
case i8 : return 8;
|
||||
case i16 :
|
||||
@@ -306,7 +307,7 @@ namespace llvm {
|
||||
static MVT getFloatingPointVT(unsigned BitWidth) {
|
||||
switch (BitWidth) {
|
||||
default:
|
||||
assert(false && "Bad bit width!");
|
||||
llvm_unreachable("Bad bit width!");
|
||||
case 16:
|
||||
return MVT::f16;
|
||||
case 32:
|
||||
|
Reference in New Issue
Block a user