diff options
author | Justin Bogner <mail@justinbogner.com> | 2013-11-22 10:20:40 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2013-11-22 10:20:40 +0000 |
commit | 0f06606b68fee7b41225d91d79cf2d27a151ff93 (patch) | |
tree | 577e19ab50c196fb4990016944e2db47e1c20f10 /clang/lib/CodeGen/CGExprComplex.cpp | |
parent | db643d7678dda2675346bc8caaa9cb8c67965528 (diff) | |
download | llvm-0f06606b68fee7b41225d91d79cf2d27a151ff93.zip llvm-0f06606b68fee7b41225d91d79cf2d27a151ff93.tar.gz llvm-0f06606b68fee7b41225d91d79cf2d27a151ff93.tar.bz2 |
CodeGen: Whitespace
llvm-svn: 195437
Diffstat (limited to 'clang/lib/CodeGen/CGExprComplex.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGExprComplex.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGExprComplex.cpp b/clang/lib/CodeGen/CGExprComplex.cpp index 73d5bcb..3351738 100644 --- a/clang/lib/CodeGen/CGExprComplex.cpp +++ b/clang/lib/CodeGen/CGExprComplex.cpp @@ -93,7 +93,7 @@ public: ComplexPairTy Visit(Expr *E) { return StmtVisitor<ComplexExprEmitter, ComplexPairTy>::Visit(E); } - + ComplexPairTy VisitStmt(Stmt *S) { S->dump(CGF.getContext().getSourceManager()); llvm_unreachable("Stmt can't have complex result type!"); @@ -410,7 +410,7 @@ ComplexPairTy ComplexExprEmitter::EmitScalarToComplexCast(llvm::Value *Val, return ComplexPairTy(Val, llvm::Constant::getNullValue(Val->getType())); } -ComplexPairTy ComplexExprEmitter::EmitCast(CastExpr::CastKind CK, Expr *Op, +ComplexPairTy ComplexExprEmitter::EmitCast(CastExpr::CastKind CK, Expr *Op, QualType DestTy) { switch (CK) { case CK_Dependent: llvm_unreachable("dependent cast kind in IR gen!"); @@ -427,7 +427,7 @@ ComplexPairTy ComplexExprEmitter::EmitCast(CastExpr::CastKind CK, Expr *Op, case CK_LValueBitCast: { LValue origLV = CGF.EmitLValue(Op); llvm::Value *V = origLV.getAddress(); - V = Builder.CreateBitCast(V, + V = Builder.CreateBitCast(V, CGF.ConvertType(CGF.getContext().getPointerType(DestTy))); return EmitLoadOfLValue(CGF.MakeAddrLValue(V, DestTy, origLV.getAlignment()), @@ -652,7 +652,7 @@ EmitCompoundAssignLValue(const CompoundAssignOperator *E, assert(CGF.getContext().hasSameUnqualifiedType(OpInfo.Ty, E->getRHS()->getType())); OpInfo.RHS = Visit(E->getRHS()); - + LValue LHS = CGF.EmitLValue(E->getLHS()); // Load from the l-value and convert it. @@ -702,7 +702,7 @@ EmitCompoundAssign(const CompoundAssignOperator *E, LValue ComplexExprEmitter::EmitBinAssignLValue(const BinaryOperator *E, ComplexPairTy &Val) { - assert(CGF.getContext().hasSameUnqualifiedType(E->getLHS()->getType(), + assert(CGF.getContext().hasSameUnqualifiedType(E->getLHS()->getType(), E->getRHS()->getType()) && "Invalid assignment"); TestAndClearIgnoreReal(); |