diff options
-rw-r--r-- | lld/wasm/Driver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/wasm/Driver.cpp b/lld/wasm/Driver.cpp index a0aec17dcbf..983d8e9f55d 100644 --- a/lld/wasm/Driver.cpp +++ b/lld/wasm/Driver.cpp @@ -202,10 +202,10 @@ void LinkerDriver::createFiles(opt::InputArgList &Args) { error("no input files"); } -static const char *getEntry(opt::InputArgList &Args, const char *def) { +static StringRef getEntry(opt::InputArgList &Args, StringRef Default) { auto *Arg = Args.getLastArg(OPT_entry, OPT_no_entry); if (!Arg) - return def; + return Default; if (Arg->getOption().getID() == OPT_no_entry) return ""; return Arg->getValue(); |