Change WarnUnsupported to ErrorUnsupported (in name and in practice).
 - We are beyond the point where this shows up often and when it does
   generating miscompiled files is bad.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54836 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CGExprConstant.cpp b/lib/CodeGen/CGExprConstant.cpp
index dfd047c..ec6a75f 100644
--- a/lib/CodeGen/CGExprConstant.cpp
+++ b/lib/CodeGen/CGExprConstant.cpp
@@ -39,7 +39,7 @@
   //===--------------------------------------------------------------------===//
     
   llvm::Constant *VisitStmt(Stmt *S) {
-    CGM.WarnUnsupported(S, "constant expression");
+    CGM.ErrorUnsupported(S, "constant expression");
     QualType T = cast<Expr>(S)->getType();
     return llvm::UndefValue::get(CGM.getTypes().ConvertType(T));
   }
@@ -129,7 +129,7 @@
     llvm::Constant *C = Visit(E);
     llvm::ConstantInt *CI = dyn_cast<llvm::ConstantInt>(C);
     if (!CI) {
-      CGM.WarnUnsupported(E, "bitfield initialization");
+      CGM.ErrorUnsupported(E, "bitfield initialization");
       return;
     }
     llvm::APInt V = CI->getValue();
@@ -541,7 +541,7 @@
     } else if (LHS->getType()->isFloatingPoint()) {
       Result = llvm::ConstantExpr::getFCmp(FloatPred, LHS, RHS);
     } else {
-      CGM.WarnUnsupported(E, "constant expression");
+      CGM.ErrorUnsupported(E, "constant expression");
       Result = llvm::ConstantInt::getFalse();
     }
 
@@ -584,7 +584,7 @@
     llvm::Constant *CondVal = EmitConversionToBool(Cond, E->getType());
     llvm::ConstantInt *CondValInt = dyn_cast<llvm::ConstantInt>(CondVal);
     if (!CondValInt) {
-      CGM.WarnUnsupported(E, "constant expression");
+      CGM.ErrorUnsupported(E, "constant expression");
       return llvm::Constant::getNullValue(ConvertType(E->getType()));
     }
     if (CondValInt->isOne()) {
@@ -789,7 +789,7 @@
       break;
     }
     }
-    CGM.WarnUnsupported(E, "constant l-value expression");
+    CGM.ErrorUnsupported(E, "constant l-value expression");
     llvm::Type *Ty = llvm::PointerType::getUnqual(ConvertType(E->getType()));
     return llvm::UndefValue::get(Ty);
   }