diff options
author | Tanya Lattner <tonic@nondot.org> | 2013-04-04 23:45:52 +0000 |
---|---|---|
committer | Tanya Lattner <tonic@nondot.org> | 2013-04-04 23:45:52 +0000 |
commit | b0eb771fb5fcbbf283e357f95230adeb6570380f (patch) | |
tree | 1e26f33282f636908eda121e01e10d654246dd8d /lib | |
parent | 98bb78885c36800d23fe247f10131bc6dcb30581 (diff) |
Revert 178811 until I fix the unit tests.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178813 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index e9116bc91a..adf3505633 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -5177,16 +5177,6 @@ bool Sema::CheckVariableDeclaration(VarDecl *NewVD, return false; } - // OpenCL v1.2 s6.5 - All program scope variables must be declared in the - // __constant address space. - if (getLangOpts().OpenCL && NewVD->isFileVarDecl() - && T.getAddressSpace() != LangAS::opencl_constant - && !T->isSamplerT()){ - Diag(NewVD->getLocation(), diag::err_opencl_global_invalid_addr_space); - NewVD->setInvalidDecl(); - return false; - } - // OpenCL v1.2 s6.8 -- The static qualifier is valid only in program // scope. if ((getLangOpts().OpenCLVersion >= 120) |