diff options
author | Devang Patel <dpatel@apple.com> | 2009-08-26 05:01:18 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-08-26 05:01:18 +0000 |
commit | f08e35d9dcf8887b3838aa5d87ff8c028b722693 (patch) | |
tree | 6d52c7378028875104ebd8e8f63a3e68d2f1dc10 /llvm/lib/Transforms/Utils/CloneFunction.cpp | |
parent | 1c9afc71300790ce0229705e35d7977629eeff35 (diff) | |
download | llvm-f08e35d9dcf8887b3838aa5d87ff8c028b722693.zip llvm-f08e35d9dcf8887b3838aa5d87ff8c028b722693.tar.gz llvm-f08e35d9dcf8887b3838aa5d87ff8c028b722693.tar.bz2 |
Revert 79977. It causes llvm-gcc bootstrap failures on some platforms.
llvm-svn: 80073
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneFunction.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/CloneFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp index f66a267..a6df161 100644 --- a/llvm/lib/Transforms/Utils/CloneFunction.cpp +++ b/llvm/lib/Transforms/Utils/CloneFunction.cpp @@ -238,7 +238,7 @@ void PruningFunctionCloner::CloneBlock(const BasicBlock *BB, // Do not clone llvm.dbg.region.end. It will be adjusted by the inliner. if (const DbgFuncStartInst *DFSI = dyn_cast<DbgFuncStartInst>(II)) { if (DbgFnStart == NULL) { - DISubprogram SP(DFSI->getSubprogram()); + DISubprogram SP(cast<GlobalVariable>(DFSI->getSubprogram())); if (SP.describes(BB->getParent())) DbgFnStart = DFSI->getSubprogram(); } |