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:
17fc13f
)
Fix an iterator invalidation bug that happens when a hashtable
author
Chris Lattner
<sabre@nondot.org>
Wed, 4 Nov 2009 18:57:42 +0000
(18:57 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 4 Nov 2009 18:57:42 +0000
(18:57 +0000)
resizes in IPSCCP. This fixes PR5394.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86036
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/SCCP.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/SCCP.cpp
b/lib/Transforms/Scalar/SCCP.cpp
index 05a0eeef2d3701387a7a9fe5d00be34d2b97f6f5..d515c130e991b5f5689b705963581a55317850aa 100644
(file)
--- a/
lib/Transforms/Scalar/SCCP.cpp
+++ b/
lib/Transforms/Scalar/SCCP.cpp
@@
-1280,9
+1280,10
@@
CallOverdefined:
}
if (const StructType *STy = dyn_cast<StructType>(AI->getType())) {
- for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i)
- mergeInValue(getStructValueState(AI, i), AI,
- getStructValueState(*CAI, i));
+ for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i) {
+ LatticeVal CallArg = getStructValueState(*CAI, i);
+ mergeInValue(getStructValueState(AI, i), AI, CallArg);
+ }
} else {
mergeInValue(AI, getValueState(*CAI));
}