[PATCH] D112197: [msan] Don't use TLS slots of noundef args
Kirill Stoimenov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 21 10:09:01 PDT 2021
kstoimenov accepted this revision.
kstoimenov added inline comments.
================
Comment at: llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp:3712-3713
Size = DL.getTypeAllocSize(A->getType());
- if (ArgOffset + Size > kParamTLSSize) break;
- Store = IRB.CreateAlignedStore(ArgShadow, ArgShadowBase,
- kShadowTLSAlignment);
- Constant *Cst = dyn_cast<Constant>(ArgShadow);
- if (Cst && Cst->isNullValue()) ArgIsInitialized = true;
+ } else {
+ if (ByVal) {
+ // ByVal requires some special handling as it's too big for a single
----------------
Consider converting this to "else if (ByVal)" to reduce indentation level.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D112197/new/
https://reviews.llvm.org/D112197
More information about the llvm-commits
mailing list