[llvm-commits] [llvm-gcc-4.2] r63289 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Chris Lattner
sabre at nondot.org
Wed Jan 28 23:54:43 PST 2009
Author: lattner
Date: Thu Jan 29 01:54:43 2009
New Revision: 63289
URL: http://llvm.org/viewvc/llvm-project?rev=63289&view=rev
Log:
The alignment of an indirect ref is the expr_align of the indirect
ref, not the pointer argument.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=63289&r1=63288&r2=63289&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Thu Jan 29 01:54:43 2009
@@ -1183,11 +1183,10 @@
case WITH_SIZE_EXPR:
// The address is the address of the operand.
return EmitLV(TREE_OPERAND(exp, 0));
- case INDIRECT_REF: {
+ case INDIRECT_REF:
// The lvalue is just the address.
- tree Op = TREE_OPERAND(exp, 0);
- return LValue(Emit(Op, 0), expr_align(Op) / 8);
- }
+ return LValue(Emit(TREE_OPERAND(exp, 0), 0),
+ expr_align(exp) / 8);
}
}
More information about the llvm-commits
mailing list