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 /lib/CodeGen/CGDecl.cpp | |
parent | f7a0b6b0658ac8aa9b8ea7560b4aefb7b5744acb (diff) |
Remove an ErrorUnsupported call.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79261 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | lib/CodeGen/CGDecl.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
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); |