mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
Avoid crashing on Arguments, just silently miscompile
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4916 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9f1bd80102
commit
d6c4cfab54
@ -138,6 +138,8 @@ namespace {
|
||||
} else if (GlobalValue *GV = dyn_cast<GlobalValue>(V)) {
|
||||
// Move the address of the global into the register
|
||||
BuildMI(BB, X86::MOVir32, 1, Reg).addReg(GV);
|
||||
} else if (Argument *A = dyn_cast<Argument>(V)) {
|
||||
std::cerr << "ERROR: Arguments not implemented in SimpleInstSel\n";
|
||||
} else {
|
||||
assert(0 && "Don't know how to handle a value of this type!");
|
||||
}
|
||||
|
@ -138,6 +138,8 @@ namespace {
|
||||
} else if (GlobalValue *GV = dyn_cast<GlobalValue>(V)) {
|
||||
// Move the address of the global into the register
|
||||
BuildMI(BB, X86::MOVir32, 1, Reg).addReg(GV);
|
||||
} else if (Argument *A = dyn_cast<Argument>(V)) {
|
||||
std::cerr << "ERROR: Arguments not implemented in SimpleInstSel\n";
|
||||
} else {
|
||||
assert(0 && "Don't know how to handle a value of this type!");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user