From 31d33b8318d70d69db701775e98a4d2915366e5e Mon Sep 17 00:00:00 2001 From: Hongbin Zheng Date: Thu, 5 Apr 2012 16:07:49 +0000 Subject: [PATCH] BBVectorize: Add the const modifier to the VectorizeConfig because we won't modify it. llvm-svn: 154098 --- llvm/lib/Transforms/Vectorize/BBVectorize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Vectorize/BBVectorize.cpp b/llvm/lib/Transforms/Vectorize/BBVectorize.cpp index 7d5bb31401c0..82be6971bd1f 100644 --- a/llvm/lib/Transforms/Vectorize/BBVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/BBVectorize.cpp @@ -141,7 +141,7 @@ namespace { struct BBVectorize : public BasicBlockPass { static char ID; // Pass identification, replacement for typeid - VectorizeConfig Config; + const VectorizeConfig Config; BBVectorize(const VectorizeConfig &C = VectorizeConfig()) : BasicBlockPass(ID), Config(C) {