[clang] 9dc92bb - [OpenCL][NFC] Fix code example in __remove_address_space documentation.

Justas Janickas via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 25 13:25:53 PDT 2021


Author: Justas Janickas
Date: 2021-08-25T21:24:32+01:00
New Revision: 9dc92bba6c742216096e33402a1a8aebf5ca48b7

URL: https://github.com/llvm/llvm-project/commit/9dc92bba6c742216096e33402a1a8aebf5ca48b7
DIFF: https://github.com/llvm/llvm-project/commit/9dc92bba6c742216096e33402a1a8aebf5ca48b7.diff

LOG: [OpenCL][NFC] Fix code example in __remove_address_space documentation.

Added: 
    

Modified: 
    clang/docs/LanguageExtensions.rst

Removed: 
    


################################################################################
diff  --git a/clang/docs/LanguageExtensions.rst b/clang/docs/LanguageExtensions.rst
index fada65c487bc..3193c8cdc11e 100644
--- a/clang/docs/LanguageExtensions.rst
+++ b/clang/docs/LanguageExtensions.rst
@@ -1978,7 +1978,7 @@ address space qualifiers, therefore, other type qualifiers such as
   void foo(T *par){
     T var1; // error - local function variable with global address space
     __private T var2; // error - conflicting address space qualifiers
-    __private __remove_address_space<T> var3; // var3 is __private int
+    __private __remove_address_space<T>::type var3; // var3 is __private int
   }
 
   void bar(){


        


More information about the cfe-commits mailing list