Skip to content

Commit d88442d

Browse files
author
Erich Keane
committed
Add note
1 parent c961d3e commit d88442d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

clang/lib/Sema/SemaSYCL.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,12 @@ class Util {
7373
template <size_t N>
7474
static constexpr DeclContextDesc MakeDeclContextDesc(Decl::Kind K,
7575
const char (&Str)[N]) {
76-
return DeclContextDesc{K, llvm::StringRef{Str, N}};
76+
// 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}};
7782
}
7883

7984
static constexpr DeclContextDesc MakeDeclContextDesc(Decl::Kind K,

0 commit comments

Comments
 (0)