aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Support/Unix/PathV2.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/Unix/PathV2.inc b/lib/Support/Unix/PathV2.inc
index 7fa838b16b..3a3a438d05 100644
--- a/lib/Support/Unix/PathV2.inc
+++ b/lib/Support/Unix/PathV2.inc
@@ -522,13 +522,13 @@ void canonical(const char *path, SmallVectorImpl<char> &buffer) {
buffer.resize(length);
memcpy(buffer.data(), result, length);
free(result);
- return buffer.data();
+ return;
}
size_t length = strlen(path);
buffer.resize(length);
memcpy(buffer.data(), path, length);
- return path;
+ return;
}
} // end namespace path