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/CodeGenModule.h | |
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/CodeGenModule.h')
-rw-r--r-- | lib/CodeGen/CodeGenModule.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index b339ae9d67..70a91b6a99 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -194,12 +194,18 @@ public: const AnnotateAttr *AA, unsigned LineNo); /// ErrorUnsupported - Print out an error that codegen doesn't support the - /// specified stmt yet. - void ErrorUnsupported(const Stmt *S, const char *Type); + /// specified stmt yet. + /// \param OmitOnError - If true, then this error should only be + /// emitted if no other errors have been reported. + void ErrorUnsupported(const Stmt *S, const char *Type, + bool OmitOnError=false); /// ErrorUnsupported - Print out an error that codegen doesn't support the /// specified decl yet. - void ErrorUnsupported(const Decl *D, const char *Type); + /// \param OmitOnError - If true, then this error should only be + /// emitted if no other errors have been reported. + void ErrorUnsupported(const Decl *D, const char *Type, + bool OmitOnError=false); private: void SetFunctionAttributes(const FunctionDecl *FD, |