diff options
| author | Bob Wilson <bob.wilson@apple.com> | 2014-02-17 19:20:59 +0000 |
|---|---|---|
| committer | Bob Wilson <bob.wilson@apple.com> | 2014-02-17 19:20:59 +0000 |
| commit | 7b6f634b076a1325d03af2f4e58fe4cfb8bbb494 (patch) | |
| tree | 845cb1ca5fc1809935ae4ba1940376d248993c32 /lib/CodeGen/CGExprScalar.cpp | |
| parent | 48e74b6ed772e6b07a38ea683eebaf9b1fca7e2e (diff) | |
| download | clang-7b6f634b076a1325d03af2f4e58fe4cfb8bbb494.tar.gz clang-7b6f634b076a1325d03af2f4e58fe4cfb8bbb494.tar.bz2 clang-7b6f634b076a1325d03af2f4e58fe4cfb8bbb494.tar.xz | |
Fix some minor whitespace issues.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201526 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
| -rw-r--r-- | lib/CodeGen/CGExprScalar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index 73c4bae7db..0a49ea5a5e 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/lib/CodeGen/CGExprScalar.cpp @@ -1298,7 +1298,7 @@ Value *ScalarExprEmitter::VisitCastExpr(CastExpr *CE) { Value *Src = Visit(const_cast<Expr*>(E)); llvm::Type *SrcTy = Src->getType(); llvm::Type *DstTy = ConvertType(DestTy); - if (SrcTy->isPtrOrPtrVectorTy() && DstTy->isPtrOrPtrVectorTy() && + if (SrcTy->isPtrOrPtrVectorTy() && DstTy->isPtrOrPtrVectorTy() && SrcTy->getPointerAddressSpace() != DstTy->getPointerAddressSpace()) { llvm::Type *MidTy = CGF.CGM.getDataLayout().getIntPtrType(SrcTy); return Builder.CreateIntToPtr(Builder.CreatePtrToInt(Src, MidTy), DstTy); |
