From: Chris Lattner Date: Sun, 21 Jun 2009 05:33:06 +0000 (+0000) Subject: prune #include, fix warning. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=d926e048c1409d3105e1ccd166e9369ab454a81d prune #include, fix warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73847 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/TGLexer.cpp b/utils/TableGen/TGLexer.cpp index a1ccdbe68fc..27669ca4b22 100644 --- a/utils/TableGen/TGLexer.cpp +++ b/utils/TableGen/TGLexer.cpp @@ -280,7 +280,7 @@ bool TGLexer::LexInclude() { CurBuffer = SrcMgr.AddIncludeFile(Filename, SMLoc::getFromPointer(CurPtr)); - if (CurBuffer == ~0U) { + if (CurBuffer == -1) { PrintError(getLoc(), "Could not find include file '" + Filename + "'"); return true; } diff --git a/utils/TableGen/TGLexer.h b/utils/TableGen/TGLexer.h index 2d1958e8800..80405ac0bf4 100644 --- a/utils/TableGen/TGLexer.h +++ b/utils/TableGen/TGLexer.h @@ -17,7 +17,6 @@ #include "llvm/Support/DataTypes.h" #include #include -#include #include namespace llvm {