diff options
| author | David Tweed <david.tweed@arm.com> | 2013-12-11 13:39:46 +0000 |
|---|---|---|
| committer | David Tweed <david.tweed@arm.com> | 2013-12-11 13:39:46 +0000 |
| commit | 142f01674857b0fac52ddf1e4d315d74210a4584 (patch) | |
| tree | 0ae792b4768f79af5a0ae653787877ebcd5e6a28 /lib/CodeGen/CGExprComplex.cpp | |
| parent | 440a474a58e1005572dd51b18a4e21b44aad8d20 (diff) | |
| download | clang-142f01674857b0fac52ddf1e4d315d74210a4584.tar.gz | |
Add front-end infrastructure now address space casts are in LLVM IR.
With the introduction of explicit address space casts into LLVM, there's
a need to provide a new cast kind the front-end can create for C/OpenCL/CUDA
and code to produce address space casts from those kinds when appropriate.
Patch by Michele Scandale!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197036 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprComplex.cpp')
| -rw-r--r-- | lib/CodeGen/CGExprComplex.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CGExprComplex.cpp b/lib/CodeGen/CGExprComplex.cpp index 3351738a6e..ded4bb8617 100644 --- a/lib/CodeGen/CGExprComplex.cpp +++ b/lib/CodeGen/CGExprComplex.cpp @@ -475,6 +475,7 @@ ComplexPairTy ComplexExprEmitter::EmitCast(CastExpr::CastKind CK, Expr *Op, case CK_CopyAndAutoreleaseBlockObject: case CK_BuiltinFnToFnPtr: case CK_ZeroToOCLEvent: + case CK_AddressSpaceConversion: llvm_unreachable("invalid cast kind for complex value"); case CK_FloatingRealToComplex: |
