diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2011-03-18 22:38:29 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-03-18 22:38:29 +0000 |
| commit | 599cb8e4302a8718df0309147fdf6f64c3e2172d (patch) | |
| tree | abbfa00685e429ec1b610048274196fd98e7da02 /clang/lib/CodeGen/CGExprConstant.cpp | |
| parent | d15609a582a5ec8e6788784c9e1732fa95a1109f (diff) | |
| download | bcm5719-llvm-599cb8e4302a8718df0309147fdf6f64c3e2172d.tar.gz bcm5719-llvm-599cb8e4302a8718df0309147fdf6f64c3e2172d.zip | |
Add support for language-specific address spaces. On top of that,
add support for the OpenCL __private, __local, __constant and
__global address spaces, as well as the __read_only, _read_write and
__write_only image access specifiers. Patch originally by ARM;
language-specific address space support by myself.
llvm-svn: 127915
Diffstat (limited to 'clang/lib/CodeGen/CGExprConstant.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGExprConstant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprConstant.cpp b/clang/lib/CodeGen/CGExprConstant.cpp index a735c3f409d..11b08c0b046 100644 --- a/clang/lib/CodeGen/CGExprConstant.cpp +++ b/clang/lib/CodeGen/CGExprConstant.cpp @@ -800,7 +800,7 @@ public: E->getType().isConstant(CGM.getContext()), llvm::GlobalValue::InternalLinkage, C, ".compoundliteral", 0, false, - E->getType().getAddressSpace()); + CGM.getContext().getTargetAddressSpace(E->getType())); return C; } case Expr::DeclRefExprClass: { |

