summaryrefslogtreecommitdiffstats
path: root/lib/Sema/SemaType.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-02-19 01:08:24 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-02-19 01:08:24 +0000
commitb508db69a813b2a7729cee512dfc27211b4eed16 (patch)
tree2bf9734139a9916d79e97ccac1e6c6e78b7733c5 /lib/Sema/SemaType.cpp
parentd970a31d7c57aa3a28e2400d547126fbe44e8958 (diff)
Remove a C++11ism.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201621 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaType.cpp')
-rw-r--r--lib/Sema/SemaType.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp
index f202af489b..e3e5225f02 100644
--- a/lib/Sema/SemaType.cpp
+++ b/lib/Sema/SemaType.cpp
@@ -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()) {