From aaad84ee63ed37007c6a0f6cd79ff13268d88501 Mon Sep 17 00:00:00 2001 From: "Mayeul@Zama" Date: Fri, 4 Nov 2022 14:18:31 +0100 Subject: [PATCH] chore(compiler): fix string-conversion --- compiler/CMakeLists.txt | 2 +- compiler/lib/Conversion/Tools.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/CMakeLists.txt b/compiler/CMakeLists.txt index d0895e482..2d1609a31 100644 --- a/compiler/CMakeLists.txt +++ b/compiler/CMakeLists.txt @@ -12,7 +12,7 @@ add_definitions("-Wno-dollar-in-identifier-extension") # Wouldn't be able to compile LLVM without this on Mac (using either Clang or AppleClang) if(APPLE) - add_definitions("-Wno-narrowing -Wno-string-conversion") + add_definitions("-Wno-narrowing") else() add_definitions("-Wall -Werror") endif() diff --git a/compiler/lib/Conversion/Tools.cpp b/compiler/lib/Conversion/Tools.cpp index 004e0eeca..2b42cd001 100644 --- a/compiler/lib/Conversion/Tools.cpp +++ b/compiler/lib/Conversion/Tools.cpp @@ -60,6 +60,6 @@ mlir::Value getContextArgument(mlir::Operation *op) { } block = block->getParentOp()->getBlock(); } - assert("can't find a function that enclose the op"); + assert(false); // can't find a function that enclose the op return nullptr; }