Avoid crashing on Arguments, just silently miscompile

llvm-svn: 4916
This commit is contained in:
Chris Lattner 2002-12-04 17:15:34 +00:00
parent 46eff7d55f
commit ccf17c6564
1 changed files with 2 additions and 0 deletions

View File

@ -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!");
}