commit | 27a53de9b8bdf36656918573e22df42239eeac09 | [log] [tgz] |
---|---|---|
author | Devang Patel <dpatel@apple.com> | Fri Jan 29 18:30:57 2010 +0000 |
committer | Devang Patel <dpatel@apple.com> | Fri Jan 29 18:30:57 2010 +0000 |
tree | 7d49a2ca243e1b83860d2364f4415468c673034f | |
parent | 4f17eb87218ce4879a4ef0ed15c9ac5cf0294c2a [diff] |
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