[PATCH] D139296: [msan][CodeGen] Set noundef for C return value

Vitaly Buka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 5 22:58:05 PST 2022


vitalybuka marked an inline comment as done.
vitalybuka added inline comments.


================
Comment at: clang/lib/CodeGen/CGCall.cpp:1828
          !Module.MayDropFunctionReturn(Module.getContext(), RetTy) ||
          Module.getLangOpts().Sanitize.has(SanitizerKind::Memory) ||
          Module.getLangOpts().Sanitize.has(SanitizerKind::Return);
----------------
aeubanks wrote:
> should this be dropped? and maybe also move up `SanitizerKind::Return`?
Documentation for SanitizerKind::Return explicitly states that it's C++ check.
So I will leave it as is.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D139296



More information about the cfe-commits mailing list