summaryrefslogtreecommitdiff
path: root/utils/FileUpdate
diff options
context:
space:
mode:
Diffstat (limited to 'utils/FileUpdate')
-rw-r--r--utils/FileUpdate/FileUpdate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/FileUpdate/FileUpdate.cpp b/utils/FileUpdate/FileUpdate.cpp
index 9b48f94948..6f9544f28e 100644
--- a/utils/FileUpdate/FileUpdate.cpp
+++ b/utils/FileUpdate/FileUpdate.cpp
@@ -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;