Fix PR22386. The inliner moves static allocas to the entry basic block
authorAdrian Prantl <aprantl@apple.com>
Fri, 30 Jan 2015 01:55:25 +0000 (01:55 +0000)
committerAdrian Prantl <aprantl@apple.com>
Fri, 30 Jan 2015 01:55:25 +0000 (01:55 +0000)
commite413c8afe018ae7513103c62daf9f93b93016c0f
treea9a8588d6e9b4707c9df429de23ebe190d53d75d
parent99a3df340102c4e463fc3f6ce6c7f53e66a3a84a
Fix PR22386. The inliner moves static allocas to the entry basic block
so we need to move the dbg.declare intrinsics that describe them, too.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227544 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/InlineFunction.cpp
test/Transforms/Inline/alloca-dbgdeclare.ll [new file with mode: 0644]