[PATCH] D71582: llvm-diff: Perform structural comparison on GlobalVariables, if possible

John McCall via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 16 22:25:38 PST 2019


rjmccall added a comment.

No, that's not true; something with External linkage would not trip any of those conditions normally.  ("Externally initialized" in particular is basically unrelated to linkage.)  I think you want a condition something like `L->getName() == R->getName() || (L->hasLocalLinkage() && R->hasLocalLinkage())`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71582/new/

https://reviews.llvm.org/D71582





More information about the llvm-commits mailing list