Skip to content

add null check before hasStaticShape() for MakeSingleDispatchForFunction - #22

Open
xshang-synaptics wants to merge 1 commit into
torq-3.10from
wip/null-check
Open

add null check before hasStaticShape() for MakeSingleDispatchForFunction#22
xshang-synaptics wants to merge 1 commit into
torq-3.10from
wip/null-check

Conversation

@xshang-synaptics

Copy link
Copy Markdown

No description provided.

auto shapedType = dyn_cast<ShapedType>(result.getType());

if (!shapedType.hasStaticShape()) {
if (!shapedType || !shapedType.hasStaticShape()) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be:

if (shapedType || !shapedType.hasStaticShape()) {

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants