Remove a C++11ism.

llvm-svn: 201621
This commit is contained in:
Richard Smith 2014-02-19 01:08:24 +00:00
parent 4025944307
commit b32d009b4f
1 changed files with 5 additions and 4 deletions

View File

@ -1129,10 +1129,11 @@ static QualType ConvertDeclSpecToType(TypeProcessingState &state) {
TypeQuals && Result->isReferenceType()) {
// If this occurs outside a template instantiation, warn the user about
// it; they probably didn't mean to specify a redundant qualifier.
std::pair<DeclSpec::TQ, SourceLocation> Quals[] = {
{ DeclSpec::TQ_const, DS.getConstSpecLoc() },
{ DeclSpec::TQ_volatile, DS.getVolatileSpecLoc() },
{ DeclSpec::TQ_atomic, DS.getAtomicSpecLoc() }
typedef std::pair<DeclSpec::TQ, SourceLocation> QualLoc;
QualLoc Quals[] = {
QualLoc(DeclSpec::TQ_const, DS.getConstSpecLoc()),
QualLoc(DeclSpec::TQ_volatile, DS.getVolatileSpecLoc()),
QualLoc(DeclSpec::TQ_atomic, DS.getAtomicSpecLoc())
};
for (unsigned I = 0, N = llvm::array_lengthof(Quals); I != N; ++I) {
if (S.ActiveTemplateInstantiations.empty()) {