diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-05-22 19:43:45 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-05-22 19:43:45 +0000 |
| commit | aa803409c3bd3930126db630c29f63d42f255153 (patch) | |
| tree | 042106605c08352895ba4383ef97eae88b6b31aa /lib/AST/TypePrinter.cpp | |
| parent | 1ce08792766261dcaa25d8215f9d1c2f70d7b7e9 (diff) | |
Notes
Diffstat (limited to 'lib/AST/TypePrinter.cpp')
| -rw-r--r-- | lib/AST/TypePrinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AST/TypePrinter.cpp b/lib/AST/TypePrinter.cpp index 2be14ab62123..0551340c37a1 100644 --- a/lib/AST/TypePrinter.cpp +++ b/lib/AST/TypePrinter.cpp @@ -1668,9 +1668,9 @@ void Qualifiers::print(raw_ostream &OS, const PrintingPolicy& Policy, OS << "__shared"; break; default: - assert(addrspace >= LangAS::Count); + assert(addrspace >= LangAS::FirstTargetAddressSpace); OS << "__attribute__((address_space("; - OS << addrspace - LangAS::Count; + OS << addrspace - LangAS::FirstTargetAddressSpace; OS << ")))"; } } |
