summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/Sema.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/Sema/Sema.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/Sema/Sema.cpp')
-rw-r--r--clang/lib/Sema/Sema.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp
index dea01bab079..6825dfa41fa 100644
--- a/clang/lib/Sema/Sema.cpp
+++ b/clang/lib/Sema/Sema.cpp
@@ -860,17 +860,6 @@ void Sema::ActOnEndOfTranslationUnit() {
}
}
- if (!Diags.isIgnored(diag::warn_mismatched_delete_new, SourceLocation())) {
- if (ExternalSource)
- ExternalSource->ReadMismatchingDeleteExpressions(DeleteExprs);
- for (const auto &DeletedFieldInfo : DeleteExprs) {
- for (const auto &DeleteExprLoc : DeletedFieldInfo.second) {
- AnalyzeDeleteExprMismatch(DeletedFieldInfo.first, DeleteExprLoc.first,
- DeleteExprLoc.second);
- }
- }
- }
-
// Check we've noticed that we're no longer parsing the initializer for every
// variable. If we miss cases, then at best we have a performance issue and
// at worst a rejects-valid bug.
@@ -1230,9 +1219,6 @@ void ExternalSemaSource::ReadUndefinedButUsed(
llvm::DenseMap<NamedDecl *, SourceLocation> &Undefined) {
}
-void ExternalSemaSource::ReadMismatchingDeleteExpressions(llvm::MapVector<
- FieldDecl *, llvm::SmallVector<std::pair<SourceLocation, bool>, 4>> &) {}
-
void PrettyDeclStackTraceEntry::print(raw_ostream &OS) const {
SourceLocation Loc = this->Loc;
if (!Loc.isValid() && TheDecl) Loc = TheDecl->getLocation();
@@ -1481,8 +1467,3 @@ CapturedRegionScopeInfo *Sema::getCurCapturedRegion() {
return dyn_cast<CapturedRegionScopeInfo>(FunctionScopes.back());
}
-
-const llvm::MapVector<FieldDecl *, Sema::DeleteLocs> &
-Sema::getMismatchingDeleteExpressions() const {
- return DeleteExprs;
-}
OpenPOWER on IntegriCloud