[llvm] de18ff3 - [Instrumentation] Fix a warning

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 28 16:31:55 PDT 2024


Author: Kazu Hirata
Date: 2024-06-28T16:31:49-07:00
New Revision: de18ff35caa764998321dc01306b509efe4be431

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

LOG: [Instrumentation] Fix a warning

This patch fixes:

  llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp:1528:38:
  error: unused variable 'TableRef' [-Werror,-Wunused-variable]

Added: 
    

Modified: 
    llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp b/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp
index 4d91f812cf676..5b2349af5e3af 100644
--- a/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp
+++ b/llvm/lib/Transforms/Instrumentation/NumericalStabilitySanitizer.cpp
@@ -1529,6 +1529,7 @@ Value *NumericalStabilitySanitizer::maybeHandleKnownCallBase(
   assert(Intrinsic::matchIntrinsicSignature(WidenedFnTy, TableRef, ArgTys) ==
              Intrinsic::MatchIntrinsicTypes_Match &&
          "invalid widened intrinsic");
+  (void)TableRef;
   // For known intrinsic functions, we create a second call to the same
   // intrinsic with a 
diff erent type.
   SmallVector<Value *, 4> Args;


        


More information about the llvm-commits mailing list