[PATCH] D117276: [NFC][msan] Don't setOrigin for byval pointer

Evgenii Stepanov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 14 12:09:59 PST 2022


eugenis added a comment.

This does not look right. We may not always check that the shadow is constant zero before accessing origin. Note that getOrigin() wants origins to be available for all values.

  a = b + c
  Sa = Sb | Sc
  Oa = Sb ? Ob : Oc;  // <= this will attempt getOrigin(c) without looking at Sc.

In any case, there are other places in the pass with the same pattern.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D117276



More information about the llvm-commits mailing list