]> granicus.if.org Git - clang/commit
Change CGDebugInfo::setLocation to just ignore invalid locations. This
authorDaniel Dunbar <daniel@zuster.org>
Fri, 17 Oct 2008 16:15:48 +0000 (16:15 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 17 Oct 2008 16:15:48 +0000 (16:15 +0000)
commit66031a5594bc9a7dc0dc5137c3e7955f835e4639
tree799a56539bb2faf5f68cfc113b1cdcf87ddfe5fe
parente5fd2d92cf8e5549f2ee7b2253b6730ee4aaa2db
Change CGDebugInfo::setLocation to just ignore invalid locations. This
simplifies clients.

Also, add assert that RegionStack is empty when the CGDebugInfo is
destroyed.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57684 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CGDebugInfo.h
lib/CodeGen/CGDecl.cpp
lib/CodeGen/CGStmt.cpp
lib/CodeGen/CodeGenFunction.cpp
lib/CodeGen/CodeGenModule.cpp