]> granicus.if.org Git - clang/commit
fix a bug in SourceManager::getInstantiationLocSlowCase, where
authorChris Lattner <sabre@nondot.org>
Fri, 12 Feb 2010 19:31:35 +0000 (19:31 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 12 Feb 2010 19:31:35 +0000 (19:31 +0000)
commita5c6c5814b4c9f562247d2182eb59ccad128dbde
tree8f09ee0f92a8e62f0443e84f4cb44557765fceaf
parent432a8893f7e30d141d7f279bd00b741a3cdac81f
fix a bug in SourceManager::getInstantiationLocSlowCase, where
we'd add an offset from the spelling location space to the
instantiation location, which doesn't make sense and would
lead up to the text diagnostics crashing when presented with
non-sensical locations.

This fixes rdar://7597492, a crash on 255.vortex.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96004 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/SourceManager.cpp
test/Misc/caret-diags-macros.c