From 20754620b70f69f763999d1c57e1ec913fb87e99 Mon Sep 17 00:00:00 2001 From: Premanand M Rao Date: Mon, 26 Apr 2021 09:17:43 -0700 Subject: [PATCH] [NFC][SYCL] Avoid -Wreorder warning about order of initialization Signed-off-by: Premanand M Rao --- clang/lib/CodeGen/CodeGenAction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/CodeGen/CodeGenAction.cpp b/clang/lib/CodeGen/CodeGenAction.cpp index 990ceeb088f60..3797fc5829300 100644 --- a/clang/lib/CodeGen/CodeGenAction.cpp +++ b/clang/lib/CodeGen/CodeGenAction.cpp @@ -1037,7 +1037,7 @@ struct OptRecordFileRAII { OptRecordFileRAII(CodeGenAction &CGA, llvm::LLVMContext &Ctx, BackendConsumer &BC) - : Ctx(Ctx), OldDiagnosticHandler(Ctx.getDiagnosticHandler()) { + : OldDiagnosticHandler(Ctx.getDiagnosticHandler()), Ctx(Ctx) { CompilerInstance &CI = CGA.getCompilerInstance(); CodeGenOptions &CodeGenOpts = CI.getCodeGenOpts();