summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-12-11 07:28:00 +0000
committerClement Courbet <courbet@google.com>2018-12-11 07:28:00 +0000
commit4ba13bd39400771b54efe05f9291700c397d5059 (patch)
treef7666a3f55c9af1ef4fbfd68fec5e4ee1228106b /clang/lib/Sema
parent67b03de9a2d354d41eb88a801e16a7df193f1de2 (diff)
downloadbcm5719-llvm-4ba13bd39400771b54efe05f9291700c397d5059.tar.gz
bcm5719-llvm-4ba13bd39400771b54efe05f9291700c397d5059.zip
Revert r348830 "[Sema]improve static_assert(!expr)"
Submitted the wrong change. llvm-svn: 348831
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaTemplate.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp
index cb6e32fc5e5..56302d62484 100644
--- a/clang/lib/Sema/SemaTemplate.cpp
+++ b/clang/lib/Sema/SemaTemplate.cpp
@@ -3071,20 +3071,6 @@ static void prettyPrintFailedBooleanCondition(llvm::raw_string_ostream &OS,
}
return;
}
- if (const auto *Paren = dyn_cast<ParenExpr>(FailedCond)) {
- OS << "(";
- prettyPrintFailedBooleanCondition(OS, Paren->getSubExpr(), Policy);
- OS << ")";
- return;
- }
- // If this is !(BooleanExpression), try pretty-printing the inner expression.
- const auto *UnaryOp = dyn_cast<UnaryOperator>(FailedCond);
- if (UnaryOp && UnaryOp->getOpcode() == UO_LNot) {
- OS << "!";
- prettyPrintFailedBooleanCondition(OS, UnaryOp->getSubExpr(), Policy);
- return;
- }
-
FailedCond->printPretty(OS, nullptr, Policy);
}
OpenPOWER on IntegriCloud