[llvm] [BOLT] Fix unused variable warning (PR #93253)
Alexander Yermolovich via llvm-commits
llvm-commits at lists.llvm.org
Thu May 23 17:03:31 PDT 2024
================
@@ -73,8 +73,8 @@ static void printDie(DWARFUnit &DU, uint64_t DIEOffset) {
DWARFDataExtractor DebugInfoData = DU.getDebugInfoExtractor();
DWARFDebugInfoEntry DIEEntry;
if (DIEEntry.extractFast(DU, &DIEOffset, DebugInfoData, NextCUOffset, 0)) {
- if (const DWARFAbbreviationDeclaration *AbbrDecl =
- DIEEntry.getAbbreviationDeclarationPtr()) {
+ const DWARFAbbreviationDeclaration *AbbrDecl;
+ if (AbbrDecl = DIEEntry.getAbbreviationDeclarationPtr()) {
----------------
ayermolo wrote:
I don't think you need to create variable at all.
https://github.com/llvm/llvm-project/pull/93253
More information about the llvm-commits
mailing list