keep only the StringRef version of getFileOrSTDIN.
[oota-llvm.git] / utils / FileUpdate / FileUpdate.cpp
index 9b48f94948aa12439ab459567a0fbd274d0b0f23..6f9544f28e203114cced935407062cb77681860b 100644 (file)
@@ -45,7 +45,7 @@ int main(int argc, char **argv) {
 
   // Get the input data.
   OwningPtr<MemoryBuffer> In;
-  if (error_code ec = MemoryBuffer::getFileOrSTDIN(InputFilename.c_str(), In)) {
+  if (error_code ec = MemoryBuffer::getFileOrSTDIN(InputFilename, In)) {
     errs() << argv[0] << ": error: Unable to get input '"
            << InputFilename << "': " << ec.message() << '\n';
     return 1;