diff options
author | Johnny Chen <johnny.chen@apple.com> | 2010-10-29 22:18:43 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2010-10-29 22:18:43 +0000 |
commit | 2a9177c3de3662db935233951da26264ebf23cd7 (patch) | |
tree | 8199305b55ee4847e1e22eaf6504af3c4f0061df /lldb/source/Symbol | |
parent | 0eccfc2693d6f258c812468e5e0d69d897078556 (diff) | |
download | bcm5719-llvm-2a9177c3de3662db935233951da26264ebf23cd7.tar.gz bcm5719-llvm-2a9177c3de3662db935233951da26264ebf23cd7.zip |
These two casts are up casts, no need to use dynamic_cast.
llvm-svn: 117725
Diffstat (limited to 'lldb/source/Symbol')
-rw-r--r-- | lldb/source/Symbol/SymbolContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Symbol/SymbolContext.cpp b/lldb/source/Symbol/SymbolContext.cpp index 40927e7b7e2..2ac99a0c619 100644 --- a/lldb/source/Symbol/SymbolContext.cpp +++ b/lldb/source/Symbol/SymbolContext.cpp @@ -303,7 +303,7 @@ SymbolContext::Dump(Stream *s, Target *target) const s->Indent(); *s << "CompileUnit = " << (void *)comp_unit; if (comp_unit != NULL) - *s << " {0x" << comp_unit->GetID() << "} " << *(dynamic_cast<FileSpec*> (comp_unit)); + *s << " {0x" << comp_unit->GetID() << "} " << *(static_cast<FileSpec*> (comp_unit)); s->EOL(); s->Indent(); *s << "Function = " << (void *)function; |