summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Decl.cpp
diff options
context:
space:
mode:
authorVlad Tsyrklevich <vtsyrklevich@google.com>2019-10-28 14:36:31 -0700
committerVlad Tsyrklevich <vtsyrklevich@google.com>2019-10-28 15:00:40 -0700
commit38839d08b8e165dfaab0fa6acc77e620d6df294c (patch)
tree34a8a30dc6a8068683a06c767bb49849bad51fbd /clang/lib/AST/Decl.cpp
parent6b7615ae9a2296f7190b126d7573bfa3310d8afc (diff)
downloadbcm5719-llvm-38839d08b8e165dfaab0fa6acc77e620d6df294c.tar.gz
bcm5719-llvm-38839d08b8e165dfaab0fa6acc77e620d6df294c.zip
Revert "[Concepts] Constraint Enforcement & Diagnostics"
This reverts commit ffa214ef22892d75340dc6720271863901dc2c90, it was causing ASAN test failures on sanitizer-x86_64-linux-bootstrap.
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 03fb55db14e..66446626c2e 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