diff options
author | Chris Lattner <sabre@nondot.org> | 2002-12-04 17:15:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-12-04 17:15:34 +0000 |
commit | d6c4cfab54e1defa78103bf122d6c79354e121b1 (patch) | |
tree | f61388124e6393f4beaf8159a70c1fc8fb171e1e /lib/Target/X86/InstSelectSimple.cpp | |
parent | 9f1bd8010282253935a4ca41877651240a2be6ab (diff) |
Avoid crashing on Arguments, just silently miscompile
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4916 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/InstSelectSimple.cpp')
-rw-r--r-- | lib/Target/X86/InstSelectSimple.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/X86/InstSelectSimple.cpp b/lib/Target/X86/InstSelectSimple.cpp index b646ed3644..27c5d061c2 100644 --- a/lib/Target/X86/InstSelectSimple.cpp +++ b/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!"); } |