[PATCH] D150020: Fix possible self assign issue for DIEValue
Kan Shengchen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat May 6 01:02:36 PDT 2023
skan added inline comments.
================
Comment at: llvm/include/llvm/CodeGen/DIE.h:467
DIEValue &operator=(const DIEValue &X) {
+ if (&Val == &X.Val)
+ return *this;
----------------
Shouldn't we compare `this` with `&X` instead?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150020/new/
https://reviews.llvm.org/D150020
More information about the llvm-commits
mailing list