diff --git a/tools/llvm-nm/llvm-nm.cpp b/tools/llvm-nm/llvm-nm.cpp index 4bf9178845f..0a1491b8467 100644 --- a/tools/llvm-nm/llvm-nm.cpp +++ b/tools/llvm-nm/llvm-nm.cpp @@ -182,19 +182,19 @@ static bool compareSymbolName(const NMSymbol &A, const NMSymbol &B) { } static char isSymbolList64Bit(SymbolicFile *Obj) { - if (dyn_cast(Obj)) + if (isa(Obj)) return false; - else if (dyn_cast(Obj)) + else if (isa(Obj)) return false; else if (MachOObjectFile *MachO = dyn_cast(Obj)) return MachO->is64Bit(); - else if (dyn_cast(Obj)) + else if (isa(Obj)) return false; - else if (dyn_cast(Obj)) + else if (isa(Obj)) return true; - else if (dyn_cast(Obj)) + else if (isa(Obj)) return false; - else if(dyn_cast(Obj)) + else if(isa(Obj)) return true; else return false;