diff options
Diffstat (limited to 'include/cps/CodeGen.h')
| -rw-r--r-- | include/cps/CodeGen.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/cps/CodeGen.h b/include/cps/CodeGen.h index 4730585..6477406 100644 --- a/include/cps/CodeGen.h +++ b/include/cps/CodeGen.h @@ -240,7 +240,7 @@ public: void print(llvm::raw_ostream &Output); const llvm::Module &getModule() const { return *TheModule; } bool hadError() const { return HadError; } - void reportError(const char *Fmt, ...); + __attribute__((format(printf, 2, 3))) void reportError(const char *Fmt, ...); static bool isBuiltinName(const std::string &Name); llvm::Value *emitExpr(ExprAST *Expr); |
