[llvm-commits] [llvm-gcc-4.2] r135477 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Jay Foad
jay.foad at gmail.com
Tue Jul 19 06:32:40 PDT 2011
Author: foad
Date: Tue Jul 19 08:32:40 2011
New Revision: 135477
URL: http://llvm.org/viewvc/llvm-project?rev=135477&view=rev
Log:
Use ArrayRef in ConstantFoldInstOperands and ConstantFoldCall.
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=135477&r1=135476&r2=135477&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Tue Jul 19 08:32:40 2011
@@ -8901,7 +8901,7 @@
FieldPtr = TheFolder->CreateGetElementPtr(StructAddrLV, Ops+1, 2);
FieldPtr = ConstantFoldInstOperands(Instruction::GetElementPtr,
- FieldPtr->getType(), Ops, 3, &TD);
+ FieldPtr->getType(), Ops, &TD);
// Now that we did an offset from the start of the struct, subtract off
// the offset from BitStart.
More information about the llvm-commits
mailing list