ff94419a287c changed the return value of appendMangledType() to
LogicalResult, which is marked as nodiscard. Ignoring the result
generates a warning when building with clang.
Reviewed By: nicolasvasilache, chelini
Differential Revision: https://reviews.llvm.org/D142202
ss << "sx";
else
ss << size << "x";
- appendMangledType(ss, memref.getElementType());
+ if (failed(appendMangledType(ss, memref.getElementType())))
+ return failure();
return success();
}
if (auto vec = t.dyn_cast<VectorType>()) {
ss << "vector";
llvm::interleave(
vec.getShape(), [&](int64_t i) { ss << i; }, [&]() { ss << "x"; });
- appendMangledType(ss, vec.getElementType());
+ if (failed(appendMangledType(ss, vec.getElementType())))
+ return failure();
return success();
} else if (t.isSignlessIntOrIndexOrFloat()) {
ss << t;