File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -803,7 +803,7 @@ void Driver::CreateOffloadingDeviceToolChains(Compilation &C,
803
803
Arg *SYCLTargetsValues = SYCLTargets ? SYCLTargets : SYCLLinkTargets;
804
804
if (SYCLTargetsValues) {
805
805
if (SYCLTargetsValues->getNumValues ()) {
806
- for (const char * Val : SYCLTargetsValues->getValues ()) {
806
+ for (StringRef Val : SYCLTargetsValues->getValues ()) {
807
807
llvm::Triple TT (Val);
808
808
if (!isValidSYCLTriple (TT)) {
809
809
Diag (clang::diag::err_drv_invalid_sycl_target) << Val;
@@ -821,7 +821,7 @@ void Driver::CreateOffloadingDeviceToolChains(Compilation &C,
821
821
822
822
// Store the current triple so that we can check for duplicates in
823
823
// the following iterations.
824
- FoundNormalizedTriples[NormalizedName] = NormalizedName ;
824
+ FoundNormalizedTriples[NormalizedName] = Val ;
825
825
UniqueSYCLTriplesVec.push_back (TT);
826
826
}
827
827
} else
@@ -857,7 +857,7 @@ void Driver::CreateOffloadingDeviceToolChains(Compilation &C,
857
857
858
858
// Store the current triple so that we can check for duplicates in
859
859
// the following iterations.
860
- FoundNormalizedTriples[NormalizedName] = NormalizedName ;
860
+ FoundNormalizedTriples[NormalizedName] = Val ;
861
861
UniqueSYCLTriplesVec.push_back (TT);
862
862
} else {
863
863
// No colon found, do not use the input
You can’t perform that action at this time.
0 commit comments