In "empty" bb, the return instruction may not be first instruction, if dbg value...
authorDevang Patel <dpatel@apple.com>
Mon, 15 Mar 2010 19:05:46 +0000 (19:05 +0000)
committerDevang Patel <dpatel@apple.com>
Mon, 15 Mar 2010 19:05:46 +0000 (19:05 +0000)
commitca704957972df96a86f4ef90ce992bce5a9b60e9
tree762b1ee02222a6d04e7aca2e435971c486010be7
parent757e75b03326d9e124dfd28bb34ca00c9edcd391
In "empty" bb, the return instruction may not be first instruction, if dbg value intrinsics are present in this bb. Use terminator to find return instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98565 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SimplifyCFGPass.cpp