]> granicus.if.org Git - clang/commitdiff
Remove the unused MemoryBuffers, no functionality change.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 4 Apr 2013 19:44:10 +0000 (19:44 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 4 Apr 2013 19:44:10 +0000 (19:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178780 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/CompilerInstance.cpp

index fce3d33780b7fd4d2702d226b0ad134cecb1f329..df06a816e84ee08cd79972d0eabc09ef0eb481ca 100644 (file)
@@ -931,10 +931,6 @@ static void checkConfigMacro(Preprocessor &PP, StringRef ConfigMacro,
       if (FID.isInvalid())
         continue;
 
-      const llvm::MemoryBuffer *Buffer = SourceMgr.getBuffer(FID);
-      if (!Buffer)
-        continue;
-
       // We only care about the predefines buffer.
       if (FID != PP.getPredefinesFileID())
         continue;
@@ -964,10 +960,6 @@ static void checkConfigMacro(Preprocessor &PP, StringRef ConfigMacro,
     if (FID.isInvalid())
       continue;
 
-    const llvm::MemoryBuffer *Buffer = SourceMgr.getBuffer(FID);
-    if (!Buffer)
-      continue;
-
     // We only care about the predefines buffer.
     if (FID != PP.getPredefinesFileID())
       continue;