[llvm-commits] [llvm] r154098 - /llvm/trunk/lib/Transforms/Vectorize/BBVectorize.cpp
Hongbin Zheng
etherzhhb at gmail.com
Thu Apr 5 09:07:50 PDT 2012
Author: ether
Date: Thu Apr 5 11:07:49 2012
New Revision: 154098
URL: http://llvm.org/viewvc/llvm-project?rev=154098&view=rev
Log:
BBVectorize: Add the const modifier to the VectorizeConfig because we won't
modify it.
Modified:
llvm/trunk/lib/Transforms/Vectorize/BBVectorize.cpp
Modified: llvm/trunk/lib/Transforms/Vectorize/BBVectorize.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/BBVectorize.cpp?rev=154098&r1=154097&r2=154098&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/BBVectorize.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/BBVectorize.cpp Thu Apr 5 11:07:49 2012
@@ -141,7 +141,7 @@
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) {
More information about the llvm-commits
mailing list