A couple of msvc compile fixes from the ml; I haven't tested with msvc,

but the fixes are reasonable.

llvm-svn: 47224
This commit is contained in:
Eli Friedman 2008-02-16 23:17:23 +00:00
parent bada8d4b5b
commit 1d88371663
2 changed files with 3 additions and 2 deletions

View File

@ -38,9 +38,9 @@ namespace clang {
E=CheckerState->null_end(); I!=E; ++I) {
const PostStmt& L = cast<PostStmt>((*I)->getLocation());
Expr* E = cast<Expr>(L.getStmt());
Expr* Exp = cast<Expr>(L.getStmt());
Diag.Report(FullSourceLoc(E->getExprLoc(), Ctx.getSourceManager()),
Diag.Report(FullSourceLoc(Exp->getExprLoc(), Ctx.getSourceManager()),
diag::chkr_null_deref_after_check);
}

View File

@ -14,6 +14,7 @@
#ifndef DRIVER_ASTCONSUMERS_H
#define DRIVER_ASTCONSUMERS_H
#include <string>
#include <iosfwd>
namespace llvm {