summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprScalar.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2008-09-04 03:43:08 +0000
committerDaniel Dunbar <daniel@zuster.org>2008-09-04 03:43:08 +0000
commit90df4b6661968a84bf64baee489bb2f6d948fcc1 (patch)
tree633ecc6ea2f0535f2737541f6cc94d946b12251c /lib/CodeGen/CGExprScalar.cpp
parent80e62c29fe21cd06c93eba6e72b7e32dca06fcf9 (diff)
downloadclang-90df4b6661968a84bf64baee489bb2f6d948fcc1.tar.gz
clang-90df4b6661968a84bf64baee489bb2f6d948fcc1.tar.bz2
clang-90df4b6661968a84bf64baee489bb2f6d948fcc1.tar.xz
Avoid superfluous errors regarding variable-length arrays (casts).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55759 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
-rw-r--r--lib/CodeGen/CGExprScalar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp
index 229b05f93e..88b8c9edef 100644
--- a/lib/CodeGen/CGExprScalar.cpp
+++ b/lib/CodeGen/CGExprScalar.cpp
@@ -516,7 +516,7 @@ Value *ScalarExprEmitter::VisitImplicitCastExpr(const ImplicitCastExpr *E) {
if (!(isa<llvm::PointerType>(V->getType()) &&
isa<llvm::ArrayType>(cast<llvm::PointerType>(V->getType())
->getElementType()))) {
- CGF.ErrorUnsupported(E, "variable-length array cast");
+ CGF.ErrorUnsupported(E, "variable-length array cast", true);
if (E->getType()->isVoidType())
return 0;
return llvm::UndefValue::get(CGF.ConvertType(E->getType()));