Files
clang-p2996/llvm/lib/Transforms/Utils/MoveAutoInit.cpp
Zain Jaffal d65c0527ab 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
2023-06-08 15:58:01 +01:00

7.8 KiB