This fixes PR946: Index: llvm-convert.cpp =================================================================== --- llvm-convert.cpp (revision 119000) +++ llvm-convert.cpp (working copy) @@ -3475,7 +3475,7 @@ // The second arg of llvm.va_copy is a pointer to a valist. Value *Arg2; const Type *VAListTy = cast<PointerType>(Arg1->getType())->getElementType(); - if (!isAggregateType(TREE_TYPE(Arg1T))) { + if (!isAggregateType(TREE_TYPE(Arg2T))) { // Emit it as a value, then store it to a temporary slot. Value *V2 = Emit(Arg2T, 0); Arg2 = CreateTemporary(V2->getType());
-Chris -- http://nondot.org/sabre/ http://llvm.org/ _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits