From: Chris Lattner Date: Mon, 11 Feb 2008 01:35:07 +0000 (+0000) Subject: strings are arrays too X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d0ba1980730d6540efa79d0d0a9bde754696ac4;p=clang strings are arrays too git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46945 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/CodeGen/CGExprConstant.cpp b/CodeGen/CGExprConstant.cpp index 7a59457597..cca5982f6d 100644 --- a/CodeGen/CGExprConstant.cpp +++ b/CodeGen/CGExprConstant.cpp @@ -203,8 +203,6 @@ public: // an l-value. if (ICExpr->getSubExpr()->getType()->isArrayType()) { // Note that VLAs can't exist for global variables. - // The only thing that can have array type like this is a - // DeclRefExpr(FileVarDecl)? llvm::Constant *C = EmitLValue(ICExpr->getSubExpr()); assert(isa(C->getType()) && isa(cast(C->getType())