diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-09-04 03:43:08 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-09-04 03:43:08 +0000 |
commit | 90df4b6661968a84bf64baee489bb2f6d948fcc1 (patch) | |
tree | 633ecc6ea2f0535f2737541f6cc94d946b12251c /lib/CodeGen/CodeGenFunction.cpp | |
parent | 80e62c29fe21cd06c93eba6e72b7e32dca06fcf9 (diff) |
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/CodeGenFunction.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index 09f3140773..ce0d7d8f89 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/lib/CodeGen/CodeGenFunction.cpp @@ -192,8 +192,9 @@ const CGRecordLayout *CodeGenFunction::getCGRecordLayout(CodeGenTypes &CGT, /// ErrorUnsupported - Print out an error that codegen doesn't support the /// specified stmt yet. -void CodeGenFunction::ErrorUnsupported(const Stmt *S, const char *Type) { - CGM.ErrorUnsupported(S, Type); +void CodeGenFunction::ErrorUnsupported(const Stmt *S, const char *Type, + bool OmitOnError) { + CGM.ErrorUnsupported(S, Type, OmitOnError); } unsigned CodeGenFunction::GetIDForAddrOfLabel(const LabelStmt *L) { |