]> granicus.if.org Git - clang/commitdiff
strings are arrays too
authorChris Lattner <sabre@nondot.org>
Mon, 11 Feb 2008 01:35:07 +0000 (01:35 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 11 Feb 2008 01:35:07 +0000 (01:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46945 91177308-0d34-0410-b5e6-96231b3b80d8

CodeGen/CGExprConstant.cpp

index 7a59457597e1d21fd9f6c3e2897060b566eebd02..cca5982f6dba60b8760256f593d23506d93e5fe9 100644 (file)
@@ -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<llvm::PointerType>(C->getType()) &&
              isa<llvm::ArrayType>(cast<llvm::PointerType>(C->getType())