Page MenuHomePhabricator

D54258.diff
No OneTemporary

File Metadata

Created
Mon, Sep 16, 2:19 AM

D54258.diff

Index: cfe/trunk/lib/AST/TypePrinter.cpp
===================================================================
--- cfe/trunk/lib/AST/TypePrinter.cpp
+++ cfe/trunk/lib/AST/TypePrinter.cpp
@@ -1805,17 +1805,19 @@
case LangAS::opencl_private:
break;
case LangAS::opencl_constant:
- case LangAS::cuda_constant:
OS << "__constant";
break;
case LangAS::opencl_generic:
OS << "__generic";
break;
case LangAS::cuda_device:
- OS << "__device";
+ OS << "__device__";
+ break;
+ case LangAS::cuda_constant:
+ OS << "__constant__";
break;
case LangAS::cuda_shared:
- OS << "__shared";
+ OS << "__shared__";
break;
default:
OS << "__attribute__((address_space(";

Event Timeline