summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-13 19:33:24 +0000
committerChris Lattner <sabre@nondot.org>2009-02-13 19:33:24 +0000
commit9ef847be12cfdb9a20885be4c77dacd2439bc4c3 (patch)
tree73e032930d4ac15c7d909aeecb1e6b375de2aba9 /clang/lib/CodeGen/CodeGenModule.h
parent7ab278db061ab8f5e702b6c7ce7061ea4c6fb5fb (diff)
downloadbcm5719-llvm-9ef847be12cfdb9a20885be4c77dacd2439bc4c3.tar.gz
bcm5719-llvm-9ef847be12cfdb9a20885be4c77dacd2439bc4c3.zip
Fix rdar://6562329, a static analyzer crash Ted noticed on
wine sources. This was happening because HighlightMacros was calling EnterMainFile multiple times on the same preprocessor object and getting an assert due to the new #line stuff (the file in question was bison output with #line directives). The fix for this is to not reenter the file. Instead, relex the tokens in raw mode, swizzle them a bit and repreprocess the token stream. An added bonus of this is that rewrite macros will now hilight the macro definition as well as its uses. Woo. llvm-svn: 64480
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud