From 08aa51115736dafca7496324a4dd804a6165b394 Mon Sep 17 00:00:00 2001 From: Stephen Tozer Date: Thu, 13 Jun 2024 09:29:18 +0100 Subject: [PATCH] Correct variable case --- mlir/lib/Target/LLVMIR/ConvertToLLVMIR.cpp | 2 +- mlir/test/lib/Dialect/Test/TestToLLVMIRTranslation.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mlir/lib/Target/LLVMIR/ConvertToLLVMIR.cpp b/mlir/lib/Target/LLVMIR/ConvertToLLVMIR.cpp index be3b36c7620559..92e786b130abb8 100644 --- a/mlir/lib/Target/LLVMIR/ConvertToLLVMIR.cpp +++ b/mlir/lib/Target/LLVMIR/ConvertToLLVMIR.cpp @@ -37,7 +37,7 @@ void registerToLLVMIRTranslation() { // When printing LLVM IR, we should convert the module to the debug info // format that LLVM expects us to print. // See https://llvm.org/docs/RemoveDIsDebugInfo.html - llvm::ScopedDbgInfoFormatSetter FormatSetter(*llvmModule, + llvm::ScopedDbgInfoFormatSetter formatSetter(*llvmModule, WriteNewDbgInfoFormat); if (WriteNewDbgInfoFormat) llvmModule->removeDebugIntrinsicDeclarations(); diff --git a/mlir/test/lib/Dialect/Test/TestToLLVMIRTranslation.cpp b/mlir/test/lib/Dialect/Test/TestToLLVMIRTranslation.cpp index 813b4960faa94d..157c6265be8346 100644 --- a/mlir/test/lib/Dialect/Test/TestToLLVMIRTranslation.cpp +++ b/mlir/test/lib/Dialect/Test/TestToLLVMIRTranslation.cpp @@ -128,7 +128,7 @@ void registerTestToLLVMIR() { // When printing LLVM IR, we should convert the module to the debug info // format that LLVM expects us to print. // See https://llvm.org/docs/RemoveDIsDebugInfo.html - llvm::ScopedDbgInfoFormatSetter FormatSetter(*llvmModule, + llvm::ScopedDbgInfoFormatSetter formatSetter(*llvmModule, WriteNewDbgInfoFormat); if (WriteNewDbgInfoFormat) llvmModule->removeDebugIntrinsicDeclarations();