forked from OSchip/llvm-project
Fix use-after-scope in 7209f83112
caught by the sanitizer bots
This commit is contained in:
parent
d879ac8a6e
commit
1beb00db1f
|
@ -4601,12 +4601,12 @@ const char *Driver::GetNamedOutputPath(Compilation &C, const JobAction &JA,
|
|||
}
|
||||
|
||||
SmallString<128> BasePath(BaseInput);
|
||||
SmallString<128> ExternalPath("");
|
||||
StringRef BaseName;
|
||||
|
||||
// Dsymutil actions should use the full path.
|
||||
if (isa<DsymutilJobAction>(JA) && C.getArgs().hasArg(options::OPT_dsym_dir)) {
|
||||
SmallString<128> ExternalPath(
|
||||
C.getArgs().getLastArg(options::OPT_dsym_dir)->getValue());
|
||||
ExternalPath += C.getArgs().getLastArg(options::OPT_dsym_dir)->getValue();
|
||||
// We use posix style here because the tests (specifically
|
||||
// darwin-dsymutil.c) demonstrate that posix style paths are acceptable
|
||||
// even on Windows and if we don't then the similar test covering this
|
||||
|
|
Loading…
Reference in New Issue