diff options
Diffstat (limited to 'contrib/llvm/tools/clang/lib/CodeGen/CGExprComplex.cpp')
| -rw-r--r-- | contrib/llvm/tools/clang/lib/CodeGen/CGExprComplex.cpp | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/llvm/tools/clang/lib/CodeGen/CGExprComplex.cpp b/contrib/llvm/tools/clang/lib/CodeGen/CGExprComplex.cpp index 0233745afa91..66b6f8629a52 100644 --- a/contrib/llvm/tools/clang/lib/CodeGen/CGExprComplex.cpp +++ b/contrib/llvm/tools/clang/lib/CodeGen/CGExprComplex.cpp @@ -427,6 +427,7 @@ ComplexPairTy ComplexExprEmitter::EmitCast(CastExpr::CastKind CK, Expr *Op,    case CK_ARCReclaimReturnedObject:    case CK_ARCExtendBlockObject:    case CK_CopyAndAutoreleaseBlockObject: +  case CK_BuiltinFnToFnPtr:      llvm_unreachable("invalid cast kind for complex value");    case CK_FloatingRealToComplex: @@ -640,7 +641,7 @@ EmitCompoundAssign(const CompoundAssignOperator *E,    LValue LV = EmitCompoundAssignLValue(E, Func, Val);    // The result of an assignment in C is the assigned r-value. -  if (!CGF.getContext().getLangOpts().CPlusPlus) +  if (!CGF.getLangOpts().CPlusPlus)      return Val;    // If the lvalue is non-volatile, return the computed value of the assignment. @@ -675,7 +676,7 @@ ComplexPairTy ComplexExprEmitter::VisitBinAssign(const BinaryOperator *E) {    LValue LV = EmitBinAssignLValue(E, Val);    // The result of an assignment in C is the assigned r-value. -  if (!CGF.getContext().getLangOpts().CPlusPlus) +  if (!CGF.getLangOpts().CPlusPlus)      return Val;    // If the lvalue is non-volatile, return the computed value of the assignment.  | 
