projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c1ac76
)
AttributeSet::get(): Fix a valgrind error. It doesn't affect actual behavior, though.
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Tue, 29 Jan 2013 15:18:16 +0000
(15:18 +0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Tue, 29 Jan 2013 15:18:16 +0000
(15:18 +0000)
Don't touch I->first on the end iterator, I == E!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173804
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/IR/Attributes.cpp
patch
|
blob
|
history
diff --git
a/lib/IR/Attributes.cpp
b/lib/IR/Attributes.cpp
index ab29766e9ffc5564ed6a1b156dec38e8fb3983a5..2cf76213e07e137e835cdb9ea180d986957aa8a6 100644
(file)
--- a/
lib/IR/Attributes.cpp
+++ b/
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;
}