aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Unicode.cpp
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2013-09-04 04:50:29 +0000
committerSerge Pavlov <sepavloff@gmail.com>2013-09-04 04:50:29 +0000
commit8260530cb2ec36e7af733c84074e91247c864933 (patch)
tree80e0c9d107519f76f9b63d8024d9a9721c64bf2c /llvm/lib/Support/Unicode.cpp
parent9672fcf1e5b8a51aca57d99fca443d49a7736d05 (diff)
downloadllvm-8260530cb2ec36e7af733c84074e91247c864933.zip
llvm-8260530cb2ec36e7af733c84074e91247c864933.tar.gz
llvm-8260530cb2ec36e7af733c84074e91247c864933.tar.bz2
Clear LookupResult object if invalid candidate is found.
If source code is invalid, error recovery can lead to name lookup in a set containing invalid declaration. The lookup is stopped once found such declaration, but LookupResult object could remain in inconsistent state. Its destructor triggered a check, which caused assert violation. This patch fixes PR16964 and PR12791. llvm-svn: 189916
Diffstat (limited to 'llvm/lib/Support/Unicode.cpp')
0 files changed, 0 insertions, 0 deletions