Remove bogus std::error_code returns form SectionRef.
[oota-llvm.git] / tools / llvm-vtabledump / llvm-vtabledump.cpp
index a12cbf6ae00e68f4246bd35d611ce9e326a24ee7..c005d7f95a9384361c4d4f6b9c2b0866e0cfcee5 100644 (file)
@@ -139,9 +139,8 @@ static void dumpVTables(const ObjectFile *Obj) {
     // Skip external symbols.
     if (SecI == Obj->section_end())
       continue;
-    bool IsBSS, IsVirtual;
-    if (error(SecI->isBSS(IsBSS)) || error(SecI->isVirtual(IsVirtual)))
-      break;
+    bool IsBSS = SecI->isBSS();
+    bool IsVirtual = SecI->isVirtual();
     // Skip virtual or BSS sections.
     if (IsBSS || IsVirtual)
       continue;