summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-12-01 23:07:57 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-12-01 23:07:57 +0000
commit465f4c486749886627043231227e26fbc76a923f (patch)
treead486c75fc754c91732f62343d3bcf72142f9af1 /llvm/lib
parent733a3e610459e63d6f3cfa8ea13a19d064c6fff2 (diff)
downloadbcm5719-llvm-465f4c486749886627043231227e26fbc76a923f.tar.gz
bcm5719-llvm-465f4c486749886627043231227e26fbc76a923f.zip
In SourceManager::isBeforeInTranslationUnit, if we are trying to compare two source locations with no common ancestor in the include stack, determine order by assuming memory buffers preceed files, and then that FileIDs are created in order.
The later assumption is patently false, but this was already broken -- this situation is conceptually impossible, my feeling is we should fix SourceManager and friends to make it impossible in practice as well. However, we need to fix PR5662 and perhaps some other things involving memory buffers first. In the short term I'm pretty sure this is reliable. Chris, Argiris, is this going to break anything that wasn't already broken? llvm-svn: 90280
Diffstat (limited to 'llvm/lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud