[all-commits] [llvm/llvm-project] 000ad1: [clang] fix a compilation bug
yonghong-song via All-commits
all-commits at lists.llvm.org
Sun Aug 16 21:54:56 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 000ad1a976a537256b17788dcf8b50ca117007b8
https://github.com/llvm/llvm-project/commit/000ad1a976a537256b17788dcf8b50ca117007b8
Author: Yonghong Song <yhs at fb.com>
Date: 2020-08-16 (Sun, 16 Aug 2020)
Changed paths:
M clang/lib/Frontend/CompilerInvocation.cpp
Log Message:
-----------
[clang] fix a compilation bug
With gcc 6.3.0, I hit the following compilation bug:
/home/yhs/work/llvm-project/clang/lib/Frontend/CompilerInvocation.cpp:
In function ‘bool ParseCodeGenArgs(clang::CodeGenOptions&, llvm::opt::ArgList&,
clang::InputKind, clang::DiagnosticsEngine&, const clang::TargetOptions&,
const clang::FrontendOptions&)’:
/home/yhs/work/llvm-project/clang/lib/Frontend/CompilerInvocation.cpp:780:12:
error: unused variable ‘A’ [-Werror=unused-variable]
if (Arg *A = Args.getLastArg(OPT_fuse_ctor_homing))
^
cc1plus: all warnings being treated as errors
The bug is introduced by Commit ae6523cd62a4 ("[DebugInfo] Add
-fuse-ctor-homing cc1 flag so we can turn on constructor homing only
if limited debug info is already on.")
More information about the All-commits
mailing list