summaryrefslogtreecommitdiffstats
path: root/clang/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-02-11 01:35:07 +0000
committerChris Lattner <sabre@nondot.org>2008-02-11 01:35:07 +0000
commitc9b96ae832845d75577437169e120fdf4b75d2ec (patch)
tree23947dcd16084cfc996aabf40e622c03600725fd /clang/CodeGen
parentf54c4e5fea3ece7df6063f6bf0d63caf1b8d8bf7 (diff)
downloadbcm5719-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.cpp2
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())
OpenPOWER on IntegriCloud