chore(compiler): fix string-conversion

This commit is contained in:
Mayeul@Zama
2022-11-04 14:18:31 +01:00
committed by mayeul-zama
parent ddbf4cf8e4
commit aaad84ee63
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -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;
}