[all-commits] [llvm/llvm-project] d65c05: change checking for auto-init metadata to use `equ...
Zain Jaffal via All-commits
all-commits at lists.llvm.org
Thu Jun 8 07:58:24 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d65c0527ab70b8089492b6788c0e2ea0cfa219e6
https://github.com/llvm/llvm-project/commit/d65c0527ab70b8089492b6788c0e2ea0cfa219e6
Author: Zain Jaffal <z_jaffal at apple.com>
Date: 2023-06-08 (Thu, 08 Jun 2023)
Changed paths:
M llvm/lib/Transforms/Utils/MoveAutoInit.cpp
Log Message:
-----------
change checking for auto-init metadata to use `equalsStr` instead of casing MDOperand nodes.
Since `MD_annotation` metadata now supports having mutliple strings in the annotation node. casing Operand to string directly will cause a crash. When checking if `MDOperand` equals str you can use `equalsStr` method.
Reviewed By: serge-sans-paille
Differential Revision: https://reviews.llvm.org/D152372
More information about the All-commits
mailing list