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 | c9b96ae832845d75577437169e120fdf4b75d2ec (patch) | |
tree | 23947dcd16084cfc996aabf40e622c03600725fd /clang/CodeGen | |
parent | f54c4e5fea3ece7df6063f6bf0d63caf1b8d8bf7 (diff) | |
download | bcm5719-llvm-c9b96ae832845d75577437169e120fdf4b75d2ec.tar.gz bcm5719-llvm-c9b96ae832845d75577437169e120fdf4b75d2ec.zip |
strings are arrays too
llvm-svn: 46945
Diffstat (limited to 'clang/CodeGen')
-rw-r--r-- | clang/CodeGen/CGExprConstant.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/CodeGen/CGExprConstant.cpp b/clang/CodeGen/CGExprConstant.cpp index 7a59457597e..cca5982f6db 100644 --- a/clang/CodeGen/CGExprConstant.cpp +++ b/clang/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()) |