[llvm-commits] [llvm] r55486 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Rafael Espindola
rafael.espindola at gmail.com
Thu Aug 28 11:32:53 PDT 2008
Author: rafael
Date: Thu Aug 28 13:32:53 2008
New Revision: 55486
URL: http://llvm.org/viewvc/llvm-project?rev=55486&view=rev
Log:
Use resize instead of reserve. Reserve doesn't change size().
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=55486&r1=55485&r2=55486&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Thu Aug 28 13:32:53 2008
@@ -3686,7 +3686,7 @@
MVT MaskVT = PermMask.getValueType();
MVT MaskEVT = MaskVT.getVectorElementType();
SmallVector<std::pair<int, int>, 8> Locs;
- Locs.reserve(4);
+ Locs.resize(4);
SmallVector<SDValue, 8> Mask1(4, DAG.getNode(ISD::UNDEF, MaskEVT));
unsigned NumHi = 0;
unsigned NumLo = 0;
More information about the llvm-commits
mailing list