summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/lib/Driver/WinLinkDriver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/Driver/WinLinkDriver.cpp b/lld/lib/Driver/WinLinkDriver.cpp
index 73af12b2bd2..6008887881b 100644
--- a/lld/lib/Driver/WinLinkDriver.cpp
+++ b/lld/lib/Driver/WinLinkDriver.cpp
@@ -374,7 +374,7 @@ bool createManifest(PECOFFLinkingContext &ctx, raw_ostream &diagnostics) {
if (!createManifestResourceFile(ctx, diagnostics, resourceFilePath))
return false;
std::unique_ptr<InputElement> inputElement(
- new PECOFFFileNode(ctx, resourceFilePath));
+ new PECOFFFileNode(ctx, ctx.allocateString(resourceFilePath)));
ctx.inputGraph().addInputElement(std::move(inputElement));
return true;
}
OpenPOWER on IntegriCloud