[compiler-rt] 65d6c47 - [compiler-rt][nsan] Adjust nan check

Alexander Shaposhnikov via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 25 23:36:07 PDT 2024


Author: Alexander Shaposhnikov
Date: 2024-08-26T06:34:56Z
New Revision: 65d6c47fde59ce0b761a1c1eae7f684b42c742fa

URL: https://github.com/llvm/llvm-project/commit/65d6c47fde59ce0b761a1c1eae7f684b42c742fa
DIFF: https://github.com/llvm/llvm-project/commit/65d6c47fde59ce0b761a1c1eae7f684b42c742fa.diff

LOG: [compiler-rt][nsan] Adjust nan check

Added: 
    

Modified: 
    compiler-rt/lib/nsan/nsan.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/nsan/nsan.cpp b/compiler-rt/lib/nsan/nsan.cpp
index ce161a18fa8f70..4be9c673bd4e00 100644
--- a/compiler-rt/lib/nsan/nsan.cpp
+++ b/compiler-rt/lib/nsan/nsan.cpp
@@ -446,7 +446,7 @@ int32_t checkFT(const FT value, ShadowFT Shadow, CheckTypeT CheckType,
   const InternalFT check_shadow = Shadow;
 
   // We only check for NaNs in the value, not the shadow.
-  if (flags().check_nan && isnan(check_value)) {
+  if (flags().check_nan && isnan(value)) {
     GET_CALLER_PC_BP;
     BufferedStackTrace stack;
     stack.Unwind(pc, bp, nullptr, false);


        


More information about the llvm-commits mailing list