[cfe-commits] r46945 - /cfe/trunk/CodeGen/CGExprConstant.cpp
Chris Lattner
sabre at nondot.org
Sun Feb 10 17:35:08 PST 2008
Author: lattner
Date: Sun Feb 10 19:35:07 2008
New Revision: 46945
URL: http://llvm.org/viewvc/llvm-project?rev=46945&view=rev
Log:
strings are arrays too
Modified:
cfe/trunk/CodeGen/CGExprConstant.cpp
Modified: cfe/trunk/CodeGen/CGExprConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CGExprConstant.cpp?rev=46945&r1=46944&r2=46945&view=diff
==============================================================================
--- cfe/trunk/CodeGen/CGExprConstant.cpp (original)
+++ cfe/trunk/CodeGen/CGExprConstant.cpp Sun Feb 10 19:35:07 2008
@@ -203,8 +203,6 @@
// 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())
More information about the cfe-commits
mailing list