summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Decl.cpp
diff options
context:
space:
mode:
authorSaar Raz <saar@raz.email>2019-10-25 00:09:37 +0300
committerSaar Raz <saar@raz.email>2019-10-25 00:19:51 +0300
commitffa214ef22892d75340dc6720271863901dc2c90 (patch)
tree22ac01e56e625a86277515bd3fd76060016265b8 /clang/lib/AST/Decl.cpp
parenta18818207ab5bb2f81cf1db036d0b23645d5ab83 (diff)
downloadbcm5719-llvm-ffa214ef22892d75340dc6720271863901dc2c90.tar.gz
bcm5719-llvm-ffa214ef22892d75340dc6720271863901dc2c90.zip
[Concepts] Constraint Enforcement & Diagnostics
Part of the C++20 concepts implementation effort. - Associated constraints (requires clauses, currently) are now enforced when instantiating/specializing templates and when considering partial specializations and function overloads. - Elaborated diagnostics give helpful insight as to why the constraints were not satisfied. Phabricator: D41569
Diffstat (limited to 'clang/lib/AST/Decl.cpp')
-rw-r--r--clang/lib/AST/Decl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index 66446626c2e..03fb55db14e 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/lib/AST/Decl.cpp
@@ -4585,7 +4585,7 @@ LabelDecl *LabelDecl::CreateDeserialized(ASTContext &C, unsigned ID) {
}
void LabelDecl::setMSAsmLabel(StringRef Name) {
- char *Buffer = new (getASTContext(), 1) char[Name.size() + 1];
+char *Buffer = new (getASTContext(), 1) char[Name.size() + 1];
memcpy(Buffer, Name.data(), Name.size());
Buffer[Name.size()] = '\0';
MSAsmName = Buffer;
OpenPOWER on IntegriCloud