BBVectorize: Add the const modifier to the VectorizeConfig because we won't

modify it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154098 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Hongbin Zheng 2012-04-05 16:07:49 +00:00
parent bef377b7d7
commit 940371bc65

View File

@ -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) {