summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriter.cpp
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2015-05-14 20:57:48 +0000
committerDiego Novillo <dnovillo@google.com>2015-05-14 20:57:48 +0000
commitc324b92c3557b0981d38c9ee7920f2c7ab0856c8 (patch)
treee2e62915de0e13d35ffa8de9696d66af54358fac /clang/lib/Serialization/ASTWriter.cpp
parent4f0f708bf1a6f2604ce15929ad4deb10f462a85f (diff)
downloadbcm5719-llvm-c324b92c3557b0981d38c9ee7920f2c7ab0856c8.tar.gz
bcm5719-llvm-c324b92c3557b0981d38c9ee7920f2c7ab0856c8.zip
Revert "Detect uses of mismatching forms of 'new' and 'delete'"
This reverts commit 742dc9b6c9686ab52860b7da39c3a126d8a97fbc. This is generating multiple segfaults in our internal builds. Test case coming up shortly. llvm-svn: 237391
Diffstat (limited to 'clang/lib/Serialization/ASTWriter.cpp')
-rw-r--r--clang/lib/Serialization/ASTWriter.cpp19
1 files changed, 1 insertions, 18 deletions
diff --git a/clang/lib/Serialization/ASTWriter.cpp b/clang/lib/Serialization/ASTWriter.cpp
index c1398e26c73..29a88a13d38 100644
--- a/clang/lib/Serialization/ASTWriter.cpp
+++ b/clang/lib/Serialization/ASTWriter.cpp
@@ -4155,20 +4155,6 @@ void ASTWriter::WriteASTCore(Sema &SemaRef,
AddSourceLocation(I->second, UndefinedButUsed);
}
- // Build a record containing all delete-expressions that we would like to
- // analyze later in AST.
- RecordData DeleteExprsToAnalyze;
-
- for (const auto &DeleteExprsInfo :
- SemaRef.getMismatchingDeleteExpressions()) {
- AddDeclRef(DeleteExprsInfo.first, DeleteExprsToAnalyze);
- DeleteExprsToAnalyze.push_back(DeleteExprsInfo.second.size());
- for (const auto &DeleteLoc : DeleteExprsInfo.second) {
- AddSourceLocation(DeleteLoc.first, DeleteExprsToAnalyze);
- DeleteExprsToAnalyze.push_back(DeleteLoc.second);
- }
- }
-
// Write the control block
WriteControlBlock(PP, Context, isysroot, OutputFile);
@@ -4438,10 +4424,7 @@ void ASTWriter::WriteASTCore(Sema &SemaRef,
// Write the undefined internal functions and variables, and inline functions.
if (!UndefinedButUsed.empty())
Stream.EmitRecord(UNDEFINED_BUT_USED, UndefinedButUsed);
-
- if (!DeleteExprsToAnalyze.empty())
- Stream.EmitRecord(DELETE_EXPRS_TO_ANALYZE, DeleteExprsToAnalyze);
-
+
// Write the visible updates to DeclContexts.
for (auto *DC : UpdatedDeclContexts)
WriteDeclContextVisibleUpdate(DC);
OpenPOWER on IntegriCloud