[llvm] [hwasan] Allow stack traces even when fixed shadow is used (PR #109344)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 20 10:31:01 PDT 2024


================
@@ -1340,7 +1340,8 @@ Value *HWAddressSanitizer::getFrameRecordInfo(IRBuilder<> &IRB) {
 }
 
 void HWAddressSanitizer::emitPrologue(IRBuilder<> &IRB, bool WithFrameRecord) {
-  if (!Mapping.InTls)
+  if (!Mapping.InTls ||
+      (Mapping.Offset != 0 && Mapping.Offset != kDynamicShadowSentinel))
----------------
fmayer wrote:

this is essentially `isFixedShadow`, right? maybe pull this into a variable of that name for documentation.

https://github.com/llvm/llvm-project/pull/109344


More information about the llvm-commits mailing list