summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-03-30 22:14:32 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-03-30 22:14:32 +0000
commit998d51b98f3716b5109d666243f9e0d69c9963dc (patch)
tree785a2383291ca763c2519e9d7b17e2dc05507e8d /clang/lib/CodeGen/CodeGenModule.cpp
parent57c644f926fea024c81160f201c4f5c2aeed0fb5 (diff)
downloadbcm5719-llvm-998d51b98f3716b5109d666243f9e0d69c9963dc.tar.gz
bcm5719-llvm-998d51b98f3716b5109d666243f9e0d69c9963dc.zip
When "delayed parsing" C++ default arguments, if there is an error, there may be tokens left in the token stream
that will interfere (they will be parsed as if they are after the class' '}') and a crash will occur because the CachedTokens that holds them will be deleted while the lexer is still using them. Make sure that the tokens of default args are removed from the token stream. Fixes PR6647. llvm-svn: 99939
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud