From 7df3d71b2da8aede8ca72f971050b851d1734bf0 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Sat, 16 Feb 2008 23:17:23 +0000 Subject: [PATCH] A couple of msvc compile fixes from the ml; I haven't tested with msvc, but the fixes are reasonable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47224 91177308-0d34-0410-b5e6-96231b3b80d8 --- Analysis/GRSimpleVals.cpp | 4 ++-- Driver/ASTConsumers.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Analysis/GRSimpleVals.cpp b/Analysis/GRSimpleVals.cpp index 75dc256d79..558a87625e 100644 --- a/Analysis/GRSimpleVals.cpp +++ b/Analysis/GRSimpleVals.cpp @@ -38,9 +38,9 @@ namespace clang { E=CheckerState->null_end(); I!=E; ++I) { const PostStmt& L = cast((*I)->getLocation()); - Expr* E = cast(L.getStmt()); + Expr* Exp = cast(L.getStmt()); - Diag.Report(FullSourceLoc(E->getExprLoc(), Ctx.getSourceManager()), + Diag.Report(FullSourceLoc(Exp->getExprLoc(), Ctx.getSourceManager()), diag::chkr_null_deref_after_check); } diff --git a/Driver/ASTConsumers.h b/Driver/ASTConsumers.h index 08d2268162..1ea8b1490b 100644 --- a/Driver/ASTConsumers.h +++ b/Driver/ASTConsumers.h @@ -14,6 +14,7 @@ #ifndef DRIVER_ASTCONSUMERS_H #define DRIVER_ASTCONSUMERS_H +#include #include namespace llvm { -- 2.50.1