From 04a9ffbe592378a988dd736f4d30dd524f01706a Mon Sep 17 00:00:00 2001 From: Peter Kasting Date: Tue, 29 Jun 2021 17:55:31 -0700 Subject: [PATCH] Fix -Wunreachable-code-aggressive. Bug: chromium:1066980 Change-Id: Iddd276bb884076591399433c6191425b3a131d0d Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/2995406 Reviewed-by: Mike Frysinger --- src/common/windows/pdb_source_line_writer.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/common/windows/pdb_source_line_writer.cc b/src/common/windows/pdb_source_line_writer.cc index a0b38420..08d52635 100644 --- a/src/common/windows/pdb_source_line_writer.cc +++ b/src/common/windows/pdb_source_line_writer.cc @@ -725,10 +725,8 @@ bool PDBSourceLineWriter::PrintFrameData() { PDBModuleInfo info; if (GetModuleInfo(&info) && info.cpu == L"x86_64") { return PrintFrameDataUsingEXE(); - } else { - return PrintFrameDataUsingPDB(); } - return false; + return PrintFrameDataUsingPDB(); } bool PDBSourceLineWriter::PrintCodePublicSymbol(IDiaSymbol* symbol,