[llvm] [nsan] Fix `Wstring-conversion` error (PR #100328)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 24 01:51:27 PDT 2024
================
@@ -527,7 +527,7 @@ NsanMemOpFn::NsanMemOpFn(Module &M, ArrayRef<StringRef> Sized,
M.getOrInsertFunction(Fallback, Attr, VoidTy, PtrTy, IntptrTy));
SizedFnTy = FunctionType::get(VoidTy, {PtrTy}, false);
} else {
- assert(!"Unexpected value of sized functions arguments");
+ assert(0 && "Unexpected value of sized functions arguments");
----------------
dtcxzyw wrote:
```suggestion
llvm_unreachable("Unexpected value of sized functions arguments");
```
https://github.com/llvm/llvm-project/pull/100328
More information about the llvm-commits
mailing list