diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-04-02 08:16:45 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-04-02 08:16:45 +0000 |
commit | 88d06c3b2ddeee97fd944278c9a2be1610e0dc87 (patch) | |
tree | 146d81a07aba804aef44cdeb594201fc9ed1d1db /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | aeabcf24df381a774fb85783dbb7d64552a41bda (diff) | |
download | llvm-88d06c3b2ddeee97fd944278c9a2be1610e0dc87.zip llvm-88d06c3b2ddeee97fd944278c9a2be1610e0dc87.tar.gz llvm-88d06c3b2ddeee97fd944278c9a2be1610e0dc87.tar.bz2 |
Use a worklist to avoid a sneaky iterator invalidation.
The iterator could be invalidated when it's recursively deleting a whole bunch
of constant expressions in a constant initializer.
Note: This was only reproducible if `opt' was run on a `.bc' file. If `opt' was
run on a `.ll' file, it wouldn't crash. This is why the test first pushes the
`.ll' file through `llvm-as' before feeding it to `opt'.
PR15440
llvm-svn: 178531
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions