[llvm] 83b79f8 - [VectorUtils] Fix -Wunused-private-field after D67572

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 10 09:36:30 PST 2019


Author: Fangrui Song
Date: 2019-12-10T09:36:23-08:00
New Revision: 83b79f8a186fbf369c400ee1bab94ec9377aff57

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

LOG: [VectorUtils] Fix -Wunused-private-field after D67572

Added: 
    

Modified: 
    llvm/include/llvm/Analysis/VectorUtils.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Analysis/VectorUtils.h b/llvm/include/llvm/Analysis/VectorUtils.h
index f6ccb04ce99f..20423b07616f 100644
--- a/llvm/include/llvm/Analysis/VectorUtils.h
+++ b/llvm/include/llvm/Analysis/VectorUtils.h
@@ -173,8 +173,6 @@ void getVectorVariantNames(const CallInst &CI,
 /// Helper class used to find the vector functions associated to a
 /// scalar CallInst.
 class VFDatabase {
-  /// The CallInst for which we are looking for vector functions.
-  const CallInst &CI;
   /// The Module of the CallInst CI.
   const Module *M;
   /// List of vector functions descritors associated to the call
@@ -223,8 +221,8 @@ class VFDatabase {
 
   /// Constructor, requires a CallInst instance.
   VFDatabase(CallInst &CI)
-      : CI(CI), M(CI.getModule()),
-        ScalarToVectorMappings(VFDatabase::getMappings(CI)) {}
+      : M(CI.getModule()), ScalarToVectorMappings(VFDatabase::getMappings(CI)) {
+  }
   /// \defgroup VFDatabase query interface.
   ///
   /// @{


        


More information about the llvm-commits mailing list