[llvm-branch-commits] [compiler-rt] [TySan] Fix struct access with different bases (PR #108385)

Jeremy Morse via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Nov 11 10:08:47 PST 2024


================
@@ -128,6 +128,10 @@ static bool isAliasingLegalUp(tysan_type_descriptor *TDA,
           break;
       }
 
+      //You can't have negative offset, you must be partially inside the last type
----------------
jmorse wrote:

Space at start of comment; better to write the comment in a passive tone, "The offset can't be negative, thus we must be..."

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


More information about the llvm-branch-commits mailing list