summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Windows/Path.inc
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-03-31 23:14:45 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-03-31 23:14:45 +0000
commite503a71df11a605d57393548249acff1ba4836b0 (patch)
treed22cbc0136e5e1957937645b4419cad0f508f98c /llvm/lib/Support/Windows/Path.inc
parentd418b1da384bf40a764295a2da499ba3982fd8ee (diff)
downloadbcm5719-llvm-e503a71df11a605d57393548249acff1ba4836b0.tar.gz
bcm5719-llvm-e503a71df11a605d57393548249acff1ba4836b0.zip
Use const ref instead of value for Twine in the disk_space() API
Thanks Rui for noticing! From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 265074
Diffstat (limited to 'llvm/lib/Support/Windows/Path.inc')
-rw-r--r--llvm/lib/Support/Windows/Path.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Windows/Path.inc b/llvm/lib/Support/Windows/Path.inc
index 72604c0e406..c17c5c61b5a 100644
--- a/llvm/lib/Support/Windows/Path.inc
+++ b/llvm/lib/Support/Windows/Path.inc
@@ -151,7 +151,7 @@ UniqueID file_status::getUniqueID() const {
return UniqueID(VolumeSerialNumber, FileID);
}
-ErrorOr<space_info> disk_space(const Twine Path) {
+ErrorOr<space_info> disk_space(const Twine &Path) {
PULARGE_INTEGER Avail, Total, Free;
if (!::GetDiskFreeSpaceExA(Path.str().c_str(), &Avail, &Total, &Free))
return mapWindowsError(::GetLastError());
OpenPOWER on IntegriCloud