diff options
author | Chris Lattner <sabre@nondot.org> | 2008-02-11 01:35:07 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-02-11 01:35:07 +0000 |
commit | 0d0ba1980730d6540efa79d0d0a9bde754696ac4 (patch) | |
tree | 3bce31f734e8be1682b2b5c2856730233a33f212 /CodeGen/CGExprConstant.cpp | |
parent | ff6e2b7d31b0f5494f583419e5061c32ea4e6180 (diff) |
strings are arrays too
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46945 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CGExprConstant.cpp')
-rw-r--r-- | CodeGen/CGExprConstant.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
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<llvm::PointerType>(C->getType()) && isa<llvm::ArrayType>(cast<llvm::PointerType>(C->getType()) |