summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-12-04 17:15:34 +0000
committerChris Lattner <sabre@nondot.org>2002-12-04 17:15:34 +0000
commitccf17c6564e4e9f910110addaace2183aee2a8d2 (patch)
tree34fd6263d92718ab59344a30ddb6adad640dda9b /llvm/lib
parent46eff7d55f5f1f7c1366cc68b43eb2cd7b65c349 (diff)
downloadbcm5719-llvm-ccf17c6564e4e9f910110addaace2183aee2a8d2.tar.gz
bcm5719-llvm-ccf17c6564e4e9f910110addaace2183aee2a8d2.zip
Avoid crashing on Arguments, just silently miscompile
llvm-svn: 4916
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/InstSelectSimple.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/InstSelectSimple.cpp b/llvm/lib/Target/X86/InstSelectSimple.cpp
index b646ed36442..27c5d061c26 100644
--- a/llvm/lib/Target/X86/InstSelectSimple.cpp
+++ b/llvm/lib/Target/X86/InstSelectSimple.cpp
@@ -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!");
}
OpenPOWER on IntegriCloud