test/Regression/Assembler/2002-07-25-ParserAssertionFailure.llx
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3101
91177308-0d34-0410-b5e6-
96231b3b80d8
// Create the call node...
if (!$5) { // Has no arguments?
+ // Make sure no arguments is a good thing!
+ if (Ty->getNumParams() != 0)
+ ThrowException("No arguments passed to a function that "
+ "expects arguments!");
+
$$ = new CallInst(V, vector<Value*>());
} else { // Has arguments?
// Loop through FunctionType's arguments and ensure they are specified