From 83b79f8a186fbf369c400ee1bab94ec9377aff57 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 10 Dec 2019 09:34:23 -0800 Subject: [PATCH] [VectorUtils] Fix -Wunused-private-field after D67572 --- llvm/include/llvm/Analysis/VectorUtils.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/llvm/include/llvm/Analysis/VectorUtils.h b/llvm/include/llvm/Analysis/VectorUtils.h index f6ccb04..20423b0 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 @@ public: /// 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. /// /// @{ -- 2.7.4