Skip to content

Commit ce0b32f

Browse files
committed
Update var init
1 parent c56dc3d commit ce0b32f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Driver/ToolChains/SYCL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1665,7 +1665,7 @@ void SYCLToolChain::AddImpliedTargetArgs(const llvm::Triple &Triple,
16651665
Args.AddAllArgValues(TargArgs, options::OPT_Xs, options::OPT_Xs_separate);
16661666
Args.AddAllArgValues(TargArgs, options::OPT_Xsycl_backend);
16671667
// Check for any -device settings.
1668-
std::string DevArg("");
1668+
std::string DevArg;
16691669
if (IsJIT || Device == "pvc" || hasPVCDevice(TargArgs, DevArg)) {
16701670
// The -device option passed in by the user may not be 'pvc'. Use the
16711671
// value provided by the user if it was specified.

0 commit comments

Comments
 (0)