]> granicus.if.org Git - clang/commit
Rework r132576.
authorDevang Patel <dpatel@apple.com>
Sat, 4 Jun 2011 00:38:02 +0000 (00:38 +0000)
committerDevang Patel <dpatel@apple.com>
Sat, 4 Jun 2011 00:38:02 +0000 (00:38 +0000)
commit9198126067a447f8aaccf9fff09be294c8bcb81e
tree34c3777a2639de97d6d0796b0e7e8db383fdd2ee
parentc152586baf0fcdfd4c660e5dcd7b6857f13203d6
Rework r132576.
Emit debug info only if there is an insertion point. The debug info should not force an insertion point. Codegen may later on decide to not emit code for some reason, see extensive comment in CodeGenFunction::EmitStmt(), and debug info should not get in the way.

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