[cfe-commits] r47224 - in /cfe/trunk: Analysis/GRSimpleVals.cpp Driver/ASTConsumers.h
Eli Friedman
eli.friedman at gmail.com
Sat Feb 16 15:17:24 PST 2008
Author: efriedma
Date: Sat Feb 16 17:17:23 2008
New Revision: 47224
URL: http://llvm.org/viewvc/llvm-project?rev=47224&view=rev
Log:
A couple of msvc compile fixes from the ml; I haven't tested with msvc,
but the fixes are reasonable.
Modified:
cfe/trunk/Analysis/GRSimpleVals.cpp
cfe/trunk/Driver/ASTConsumers.h
Modified: cfe/trunk/Analysis/GRSimpleVals.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Analysis/GRSimpleVals.cpp?rev=47224&r1=47223&r2=47224&view=diff
==============================================================================
--- cfe/trunk/Analysis/GRSimpleVals.cpp (original)
+++ cfe/trunk/Analysis/GRSimpleVals.cpp Sat Feb 16 17:17:23 2008
@@ -38,9 +38,9 @@
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);
}
Modified: cfe/trunk/Driver/ASTConsumers.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/ASTConsumers.h?rev=47224&r1=47223&r2=47224&view=diff
==============================================================================
--- cfe/trunk/Driver/ASTConsumers.h (original)
+++ cfe/trunk/Driver/ASTConsumers.h Sat Feb 16 17:17:23 2008
@@ -14,6 +14,7 @@
#ifndef DRIVER_ASTCONSUMERS_H
#define DRIVER_ASTCONSUMERS_H
+#include <string>
#include <iosfwd>
namespace llvm {
More information about the cfe-commits
mailing list