diff options
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/IR/Attributes.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index ab29766e9ff..2cf76213e07 100644 --- a/llvm/lib/IR/Attributes.cpp +++ b/llvm/lib/IR/Attributes.cpp @@ -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;      } | 

