OSDN Git Service

Before inserting llvm.dbg.declare intrinsic at the end of a basic block, check...
authorDevang Patel <dpatel@apple.com>
Fri, 29 Jan 2010 18:30:57 +0000 (18:30 +0000)
committerDevang Patel <dpatel@apple.com>
Fri, 29 Jan 2010 18:30:57 +0000 (18:30 +0000)
commit27a53de9b8bdf36656918573e22df42239eeac09
tree7d49a2ca243e1b83860d2364f4415468c673034f
parent4f17eb87218ce4879a4ef0ed15c9ac5cf0294c2a
Before inserting   llvm.dbg.declare intrinsic at the end of a basic block, check whether the basic block has a terminator or not.
This API is used by clang and the test case is test/CodeGen/debug-info-crash.c in clang module.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94820 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/DebugInfo.cpp