diff options
author | Anders Carlsson <andersca@mac.com> | 2009-08-17 18:24:57 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-08-17 18:24:57 +0000 |
commit | 622f9dc76bdc4f4d6920907f4fb64a3222aa6566 (patch) | |
tree | 99494774b61051a9f994fca42a0c88a74bb2d1d9 | |
parent | f7a0b6b0658ac8aa9b8ea7560b4aefb7b5744acb (diff) |
Remove an ErrorUnsupported call.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79261 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/CGCXX.cpp | 2 | ||||
-rw-r--r-- | lib/CodeGen/CGDecl.cpp | 5 |
2 files changed, 1 insertions, 6 deletions
diff --git a/lib/CodeGen/CGCXX.cpp b/lib/CodeGen/CGCXX.cpp index 5e71064797..61ff4807b2 100644 --- a/lib/CodeGen/CGCXX.cpp +++ b/lib/CodeGen/CGCXX.cpp @@ -74,7 +74,7 @@ void CodeGenFunction::EmitCXXGlobalVarDeclInit(const VarDecl &D, QualType T = D.getType(); if (T->isReferenceType()) { - ErrorUnsupported(Init, "Global variable that binds to a reference"); + ErrorUnsupported(Init, "global variable that binds to a reference"); } else if (!hasAggregateLLVMType(T)) { llvm::Value *V = EmitScalarExpr(Init); EmitStoreOfScalar(V, DeclPtr, T.isVolatileQualified(), T); diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp index cadd964950..05823cf03f 100644 --- a/lib/CodeGen/CGDecl.cpp +++ b/lib/CodeGen/CGDecl.cpp @@ -126,11 +126,6 @@ void CodeGenFunction::EmitStaticBlockVarDecl(const VarDecl &D) { if (D.getType()->isVariablyModifiedType()) EmitVLASize(D.getType()); - if (D.getType()->isReferenceType()) { - CGM.ErrorUnsupported(&D, "static declaration with reference type"); - return; - } - if (D.getInit()) { llvm::Constant *Init = CGM.EmitConstantExpr(D.getInit(), D.getType(), this); |