We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5496f2d commit df02a9eCopy full SHA for df02a9e
clang/lib/Driver/ToolChains/CommonArgs.cpp
@@ -2969,9 +2969,8 @@ void tools::addOpenCLBuiltinsLib(const Driver &D,
2969
StringRef LibclcNamespec(A->getValue());
2970
2971
// If the namespec is of the form :filename, search for that file.
2972
- bool FilenameSearch = LibclcNamespec.starts_with(":");
2973
- SmallString<128> LibclcTargetFile(
2974
- LibclcNamespec.drop_front(FilenameSearch ? 1 : 0));
+ bool FilenameSearch = LibclcNamespec.consume_front(":");
+ SmallString<128> LibclcTargetFile(LibclcNamespec);
2975
2976
if (FilenameSearch && llvm::sys::fs::exists(LibclcTargetFile)) {
2977
FoundBCLibrary = true;
0 commit comments