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 c961d3e commit d88442dCopy full SHA for d88442d
clang/lib/Sema/SemaSYCL.cpp
@@ -73,7 +73,12 @@ class Util {
73
template <size_t N>
74
static constexpr DeclContextDesc MakeDeclContextDesc(Decl::Kind K,
75
const char (&Str)[N]) {
76
- return DeclContextDesc{K, llvm::StringRef{Str, N}};
+ // FIXME: This SHOULD be able to use the StringLiteral constructor here
77
+ // instead, however this seems to fail with an 'invalid string literal' note
78
+ // on the correct constructor in some build configurations. We need to
79
+ // figure that out before reverting this to use the StringLiteral
80
+ // constructor.
81
+ return DeclContextDesc{K, StringRef{Str, N}};
82
}
83
84
0 commit comments