aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Analysis/DbgInfoPrinter.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-08-26 05:01:18 +0000
committerDevang Patel <dpatel@apple.com>2009-08-26 05:01:18 +0000
commit94060421ce73922e71c183fba0fda8bace7d0e2d (patch)
tree5a87b0b92a0c718d5f87d80b51cc4a6b9251eb63 /lib/Analysis/DbgInfoPrinter.cpp
parent66d02907de42fa311fb2b512e820277bb1a61e7c (diff)
downloadexternal_llvm-94060421ce73922e71c183fba0fda8bace7d0e2d.tar.gz
external_llvm-94060421ce73922e71c183fba0fda8bace7d0e2d.tar.bz2
external_llvm-94060421ce73922e71c183fba0fda8bace7d0e2d.zip
Revert 79977. It causes llvm-gcc bootstrap failures on some platforms.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80073 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DbgInfoPrinter.cpp')
-rw-r--r--lib/Analysis/DbgInfoPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/DbgInfoPrinter.cpp b/lib/Analysis/DbgInfoPrinter.cpp
index 8063476bb5..913490d604 100644
--- a/lib/Analysis/DbgInfoPrinter.cpp
+++ b/lib/Analysis/DbgInfoPrinter.cpp
@@ -90,7 +90,7 @@ void PrintDbgInfo::printStopPoint(const DbgStopPointInst *DSI) {
}
void PrintDbgInfo::printFuncStart(const DbgFuncStartInst *FS) {
- DISubprogram Subprogram(FS->getSubprogram());
+ DISubprogram Subprogram(cast<GlobalVariable>(FS->getSubprogram()));
std::string Res1, Res2;
Out << "; fully qualified function name: " << Subprogram.getDisplayName(Res1)
<< " return type: " << Subprogram.getReturnTypeName(Res2)