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();