]> granicus.if.org Git - clang/commitdiff
A couple of msvc compile fixes from the ml; I haven't tested with msvc,
authorEli Friedman <eli.friedman@gmail.com>
Sat, 16 Feb 2008 23:17:23 +0000 (23:17 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Sat, 16 Feb 2008 23:17:23 +0000 (23:17 +0000)
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
Driver/ASTConsumers.h

index 75dc256d79709157b6be18b95caeec4db8213615..558a87625efac498e1bee520be9b0d6f1a118683 100644 (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);
     }
         
index 08d2268162273b35182967888f1f1115aea0aa8b..1ea8b1490b5166ceb068e4f42af07a1621505671 100644 (file)
@@ -14,6 +14,7 @@
 #ifndef DRIVER_ASTCONSUMERS_H
 #define DRIVER_ASTCONSUMERS_H
 
+#include <string>
 #include <iosfwd>
 
 namespace llvm {