[llvm-commits] [llvm] r40946 - in /llvm/trunk: include/llvm/Analysis/MemoryDependenceAnalysis.h lib/Analysis/MemoryDependenceAnalysis.cpp lib/Transforms/Scalar/DeadStoreElimination.cpp lib/Transforms/Scalar/GVN.cpp lib/Transforms/Scalar/RedundantLoadElimination.cpp

Chris Lattner clattner at apple.com
Wed Aug 8 21:13:33 PDT 2007


> URL: http://llvm.org/viewvc/llvm-project?rev=40946&view=rev
> Log:
> Change the None and NonLocal markers in memdep to be const.

Sorry for the confusion but:

> -    static Instruction* NonLocal;
> -    static Instruction* None;
> +    static const Instruction* NonLocal;
> +    static const Instruction* None;

This (and all the changes to change Instruction* -> const  
Instruction*) doesn't make NonLocal and None const.  You want:

     static Instruction* const NonLocal;
     static Instruction* const None;

Which doesn't require the const_cast's and other things.

-Chris




More information about the llvm-commits mailing list