ehjogab created this revision. ehjogab added reviewers: dsanders, arsenm, qcolombet, ab, bjope, rovka. Herald added a project: clang. Herald added a subscriber: cfe-commits. ehjogab requested review of this revision. Herald added a subscriber: wdng.
Change-Id: Id37948be57aad3551eb14fc16b2aea2441a45e7d Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D91519 Files: clang/lib/AST/APValue.cpp lld/MachO/SymbolTable.cpp Index: lld/MachO/SymbolTable.cpp =================================================================== --- lld/MachO/SymbolTable.cpp +++ lld/MachO/SymbolTable.cpp @@ -134,7 +134,7 @@ // FIXME: Make every symbol (including absolute symbols) contain a // reference to their originating file, then add that file name to this // error message. - if (auto *defined = dyn_cast<Defined>(s)) + if (dyn_cast<Defined>(s)) error("found defined symbol with illegal name " + DSOHandle::name); } replaceSymbol<DSOHandle>(s, header); Index: clang/lib/AST/APValue.cpp =================================================================== --- clang/lib/AST/APValue.cpp +++ clang/lib/AST/APValue.cpp @@ -1062,7 +1062,7 @@ } case APValue::Union: - if (const auto *FD = V.getUnionField()) + if (V.getUnionField()) Merge(V.getUnionValue()); break;
Index: lld/MachO/SymbolTable.cpp =================================================================== --- lld/MachO/SymbolTable.cpp +++ lld/MachO/SymbolTable.cpp @@ -134,7 +134,7 @@ // FIXME: Make every symbol (including absolute symbols) contain a // reference to their originating file, then add that file name to this // error message. - if (auto *defined = dyn_cast<Defined>(s)) + if (dyn_cast<Defined>(s)) error("found defined symbol with illegal name " + DSOHandle::name); } replaceSymbol<DSOHandle>(s, header); Index: clang/lib/AST/APValue.cpp =================================================================== --- clang/lib/AST/APValue.cpp +++ clang/lib/AST/APValue.cpp @@ -1062,7 +1062,7 @@ } case APValue::Union: - if (const auto *FD = V.getUnionField()) + if (V.getUnionField()) Merge(V.getUnionValue()); break;
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits