diff options
author | Anders Carlsson <andersca@mac.com> | 2010-01-23 04:34:47 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-01-23 04:34:47 +0000 |
commit | ed8d80d72bd8d956a7fa7354166b8f33106d24b9 (patch) | |
tree | da3f1c265e96b8b3e4b0b9ce4d6bd86b3d46337b /clang/lib/Sema/SemaInit.h | |
parent | 4a1aa119a3d78e3b41bb4f808290e871530b8316 (diff) | |
download | bcm5719-llvm-ed8d80d72bd8d956a7fa7354166b8f33106d24b9.tar.gz bcm5719-llvm-ed8d80d72bd8d956a7fa7354166b8f33106d24b9.zip |
Separate EK_ArrayOrVectorElement into EK_ArrayElement and EK_VectorElement; arrays and vectors are pretty different beasts in C++. Doug, please review/comment.
llvm-svn: 94279
Diffstat (limited to 'clang/lib/Sema/SemaInit.h')
-rw-r--r-- | clang/lib/Sema/SemaInit.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaInit.h b/clang/lib/Sema/SemaInit.h index 5eb819a6917..5c305545b09 100644 --- a/clang/lib/Sema/SemaInit.h +++ b/clang/lib/Sema/SemaInit.h @@ -57,9 +57,12 @@ public: /// \brief The entity being initialized is a non-static data member /// subobject. EK_Member, - /// \brief The entity being initialized is an element of an array + /// \brief The entity being initialized is an element of an array. + EK_ArrayElement, + /// \brief The entity being initialized is an element of a vector. /// or vector. - EK_ArrayOrVectorElement + EK_VectorElement + }; private: @@ -211,7 +214,7 @@ public: /// \brief If this is already the initializer for an array or vector /// element, sets the element index. void setElementIndex(unsigned Index) { - assert(getKind() == EK_ArrayOrVectorElement); + assert(getKind() == EK_ArrayElement || getKind() == EK_VectorElement); this->Index = Index; } }; |