diff options
author | Devang Patel <dpatel@apple.com> | 2009-01-12 22:58:14 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-01-12 22:58:14 +0000 |
commit | f6bac3e4bd9502266dab49eef26266a092e8c85b (patch) | |
tree | 65840f132ac8b62de62ae19578db639436f29c45 /lib/CodeGen/AsmPrinter/DwarfWriter.cpp | |
parent | f3ee51441909cf1accfcce4c9b5b9f851e2c07b6 (diff) |
Avoid cast<>, use light weith wrapper directly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62115 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfWriter.cpp')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfWriter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp index 9f94a2b79e..e7d8a0a305 100644 --- a/lib/CodeGen/AsmPrinter/DwarfWriter.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfWriter.cpp @@ -2629,13 +2629,13 @@ private: if (!RootScope) return; // Get the subprogram debug information entry. - DISubprogram *SPD = cast<DISubprogram>(RootScope->getDesc()); + DISubprogram SPD(RootScope->getDesc()->getGV()); // Get the compile unit context. - CompileUnit *Unit = FindCompileUnit(SPD->getCompileUnit()); + CompileUnit *Unit = FindCompileUnit(SPD.getCompileUnit()); // Get the subprogram die. - DIE *SPDie = Unit->getDieMapSlotFor(SPD->getGV()); + DIE *SPDie = Unit->getDieMapSlotFor(SPD.getGV()); assert(SPDie && "Missing subprogram descriptor"); // Add the function bounds. |