forked from OSchip/llvm-project
AttributeSet::get(): Fix a valgrind error. It doesn't affect actual behavior, though.
Don't touch I->first on the end iterator, I == E! llvm-svn: 173804
This commit is contained in:
parent
85f16f9462
commit
f05d2f254e
|
@ -455,7 +455,7 @@ AttributeSet AttributeSet::get(LLVMContext &C,
|
|||
E = Attrs.end(); I != E; ) {
|
||||
unsigned Index = I->first;
|
||||
SmallVector<Attribute, 4> AttrVec;
|
||||
while (I->first == Index && I != E) {
|
||||
while (I != E && I->first == Index) {
|
||||
AttrVec.push_back(I->second);
|
||||
++I;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue