From 9df7dc52e8fd5c69a5d6464d02b7496091e18c29 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Fri, 2 Nov 2007 01:26:22 +0000 Subject: Missing a getNumOperands check. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43630 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/X86/2007-11-01-ISelCrash.ll | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/CodeGen/X86/2007-11-01-ISelCrash.ll (limited to 'test/CodeGen') diff --git a/test/CodeGen/X86/2007-11-01-ISelCrash.ll b/test/CodeGen/X86/2007-11-01-ISelCrash.ll new file mode 100644 index 0000000000..8994bf9981 --- /dev/null +++ b/test/CodeGen/X86/2007-11-01-ISelCrash.ll @@ -0,0 +1,10 @@ + %"struct.K::JL" = type <{ i8 }> + %struct.jv = type { i64 } + +declare fastcc i64 @f(i32, %"struct.K::JL"*, i8*, i8*, %struct.jv*) + +define void @t(%"struct.K::JL"* %obj, i8* %name, i8* %sig, %struct.jv* %args) { +entry: + %tmp5 = tail call fastcc i64 @f( i32 1, %"struct.K::JL"* %obj, i8* %name, i8* %sig, %struct.jv* %args ) ; [#uses=0] + ret void +} -- cgit v1.2.3