diff options
author | Hongbin Zheng <etherzhhb@gmail.com> | 2012-04-05 16:07:49 +0000 |
---|---|---|
committer | Hongbin Zheng <etherzhhb@gmail.com> | 2012-04-05 16:07:49 +0000 |
commit | 940371bc65570ec0add1ede4f4d9f0a41ba25e09 (patch) | |
tree | fe5866d92e1d51d5a0f4129e9b8fcf0cba36b23f | |
parent | bef377b7d7ce31edb40c87f8786d1b7bb6cdd6b1 (diff) | |
download | external_llvm-940371bc65570ec0add1ede4f4d9f0a41ba25e09.zip external_llvm-940371bc65570ec0add1ede4f4d9f0a41ba25e09.tar.gz external_llvm-940371bc65570ec0add1ede4f4d9f0a41ba25e09.tar.bz2 |
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
-rw-r--r-- | lib/Transforms/Vectorize/BBVectorize.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Vectorize/BBVectorize.cpp b/lib/Transforms/Vectorize/BBVectorize.cpp index 7d5bb31..82be697 100644 --- a/lib/Transforms/Vectorize/BBVectorize.cpp +++ b/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) { |