Skip to content

Commit

Permalink
Fix assert syntax for macOS compiler builds.
Browse files Browse the repository at this point in the history
```
/Users/runner/work/iree/iree/compiler/src/iree/compiler/Codegen/Dialect/VectorExt/IR/VectorExtAttrs.cpp:221:12: error: implicit conversion turns string literal into bool: 'const char[44]' to 'bool' [-Werror,-Wstring-conversion]
    assert("Invalid dimension! Expected lane dimension.");
    ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
  • Loading branch information
ScottTodd committed Aug 2, 2024
1 parent 28928a3 commit 74790bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ uint64_t LayoutAttr::getShuffleOffset(int64_t reductionDim) {
getShape(LayoutDimension::LANEY).value_or(0);
break;
default:
assert("Invalid dimension! Expected lane dimension.");
assert(false && "Invalid dimension! Expected lane dimension");
break;
}
return offset;
Expand Down

0 comments on commit 74790bd

Please sign in to comment.