]> granicus.if.org Git - clang/commitdiff
Unbreak last commit. This should have been part of r98478.
authorKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>
Sun, 14 Mar 2010 07:55:43 +0000 (07:55 +0000)
committerKovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com>
Sun, 14 Mar 2010 07:55:43 +0000 (07:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98480 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/CacheTokens.cpp

index 5cc56aef70c21a3d7e18147eaec929c58eeb34aa..029010dc1963d3688e2d8ec079f2fc9d80c342f5 100644 (file)
@@ -446,9 +446,9 @@ void PTHWriter::GeneratePTH(const std::string &MainFile) {
     Emit32(0);
 
   // Write the name of the MainFile.
-  if (!MainFile->empty()) {
-    Emit16(MainFile->length());
-    EmitBuf(MainFile->data(), MainFile->length());
+  if (!MainFile.empty()) {
+    Emit16(MainFile.length());
+    EmitBuf(MainFile.data(), MainFile.length());
   } else {
     // String with 0 bytes.
     Emit16(0);