diff options
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp b/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp index ffcdbc1180b..3f5915a043a 100644 --- a/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp +++ b/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp @@ -134,12 +134,12 @@ class ArgumentLayout { std::vector<unsigned> pos; std::vector<MVT::ValueType> types; public: - ArgumentLayout(std::vector<MVT::ValueType> Types) { + ArgumentLayout(const std::vector<MVT::ValueType> &Types) { types = Types; unsigned RegNum = 0; unsigned StackOffset = 0; - for(std::vector<MVT::ValueType>::iterator I = Types.begin(); + for(std::vector<MVT::ValueType>::const_iterator I = Types.begin(); I != Types.end(); ++I) { MVT::ValueType VT = *I; |