mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
Avoid undefined behavior from passing a std::vector's own contents
in as an argument to push_back. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178166 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e77918c355
commit
dcdc0faf59
@ -1105,7 +1105,9 @@ void PredTransitions::getIntersectingVariants(
|
||||
// Push another copy of the current transition for more variants.
|
||||
Variant.TransVecIdx = TransVec.size();
|
||||
IntersectingVariants.push_back(Variant);
|
||||
TransVec.push_back(TransVec[TransIdx]);
|
||||
|
||||
PredTransition Trans = TransVec[TransIdx];
|
||||
TransVec.push_back(Trans);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user