mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-17 03:26:03 +00:00
Fixed a few illegal paths with llvm_unreachable. Patch by Cameron McInally.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132732 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7b5c20bbb8
commit
36a300ac02
@ -19,9 +19,10 @@
|
|||||||
|
|
||||||
#include "FastISelEmitter.h"
|
#include "FastISelEmitter.h"
|
||||||
#include "Record.h"
|
#include "Record.h"
|
||||||
#include "llvm/Support/Debug.h"
|
|
||||||
#include "llvm/ADT/SmallString.h"
|
#include "llvm/ADT/SmallString.h"
|
||||||
#include "llvm/ADT/VectorExtras.h"
|
#include "llvm/ADT/VectorExtras.h"
|
||||||
|
#include "llvm/Support/Debug.h"
|
||||||
|
#include "llvm/Support/ErrorHandling.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
@ -278,8 +279,7 @@ struct OperandsSignature {
|
|||||||
} else if (Operands[i].isFP()) {
|
} else if (Operands[i].isFP()) {
|
||||||
OS << "ConstantFP *f" << i;
|
OS << "ConstantFP *f" << i;
|
||||||
} else {
|
} else {
|
||||||
assert("Unknown operand kind!");
|
llvm_unreachable("Unknown operand kind!");
|
||||||
abort();
|
|
||||||
}
|
}
|
||||||
if (i + 1 != e)
|
if (i + 1 != e)
|
||||||
OS << ", ";
|
OS << ", ";
|
||||||
@ -307,8 +307,7 @@ struct OperandsSignature {
|
|||||||
OS << "f" << i;
|
OS << "f" << i;
|
||||||
PrintedArg = true;
|
PrintedArg = true;
|
||||||
} else {
|
} else {
|
||||||
assert("Unknown operand kind!");
|
llvm_unreachable("Unknown operand kind!");
|
||||||
abort();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -322,8 +321,7 @@ struct OperandsSignature {
|
|||||||
} else if (Operands[i].isFP()) {
|
} else if (Operands[i].isFP()) {
|
||||||
OS << "f" << i;
|
OS << "f" << i;
|
||||||
} else {
|
} else {
|
||||||
assert("Unknown operand kind!");
|
llvm_unreachable("Unknown operand kind!");
|
||||||
abort();
|
|
||||||
}
|
}
|
||||||
if (i + 1 != e)
|
if (i + 1 != e)
|
||||||
OS << ", ";
|
OS << ", ";
|
||||||
|
Loading…
Reference in New Issue
Block a user