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

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 19 15:52:51 PDT 2024


================
@@ -1897,16 +1897,19 @@ void HWAddressSanitizer::ShadowMapping::init(Triple &TargetTriple,
     InTls = false;
     Offset = 0;
     WithFrameRecord = true;
-  } else if (ClMappingOffset.getNumOccurrences() > 0) {
-    InGlobal = false;
-    InTls = false;
-    Offset = ClMappingOffset;
-    WithFrameRecord = false;
   } else if (ClEnableKhwasan || InstrumentWithCalls) {
     InGlobal = false;
     InTls = false;
-    Offset = 0;
+    if (ClMappingOffset.getNumOccurrences() > 0)
----------------
fmayer wrote:

`optOr`.

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


More information about the llvm-commits mailing list