[llvm-commits] PATCH: remove unused variable TheError

Manuel Klimek klimek at google.com
Tue Dec 20 06:54:16 PST 2011


While searching for an example to model my use of SourceMgr after, I
stumbled over LLLexer.h and found what looks like an unused variable -
this patch would remove it, if there's not some hidden use of TheError
that I'm missing.

diff --git a/lib/AsmParser/LLLexer.h b/lib/AsmParser/LLLexer.h
index 33b9135..09aea5b 100644
--- a/lib/AsmParser/LLLexer.h
+++ b/lib/AsmParser/LLLexer.h
@@ -42,7 +42,6 @@ namespace llvm {
     APFloat APFloatVal;
     APSInt  APSIntVal;

-    std::string TheError;
   public:
     explicit LLLexer(MemoryBuffer *StartBuf, SourceMgr &SM, SMDiagnostic &,
                      LLVMContext &C);



More information about the llvm-commits mailing list