[llvm-commits] llvm-gcc commit
Chris Lattner
sabre at nondot.org
Tue Oct 17 13:06:20 PDT 2006
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/
More information about the llvm-commits
mailing list