diff options
Diffstat (limited to 'lib/Frontend')
-rw-r--r-- | lib/Frontend/CacheTokens.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Frontend/CacheTokens.cpp b/lib/Frontend/CacheTokens.cpp index 5cc56aef70..029010dc19 100644 --- a/lib/Frontend/CacheTokens.cpp +++ b/lib/Frontend/CacheTokens.cpp @@ -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); |