aboutsummaryrefslogtreecommitdiff
path: root/lib/Parse/ParseTentative.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Parse/ParseTentative.cpp')
-rw-r--r--lib/Parse/ParseTentative.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/Parse/ParseTentative.cpp b/lib/Parse/ParseTentative.cpp
index 3c50884c9c..f352efa872 100644
--- a/lib/Parse/ParseTentative.cpp
+++ b/lib/Parse/ParseTentative.cpp
@@ -126,18 +126,6 @@ bool Parser::isCXXSimpleDeclaration() {
TPR = TPResult::True();
assert(TPR == TPResult::True() || TPR == TPResult::False());
- if (TPR == TPResult::True() && Tok.isNot(tok::kw_void)) {
- // We have a declaration that looks like a functional cast; there's a high
- // chance that the author intended the statement to be an expression.
- // Emit a warning.
- Diag(Tok, diag::warn_statement_disambiguation)
- << "declaration" << SourceRange(Tok.getLocation(), TentativeParseLoc);
- } else if (TPR == TPResult::False() && Tok.is(tok::kw_void)) {
- // A functional cast to 'void' expression ? Warning..
- Diag(Tok, diag::warn_statement_disambiguation)
- << "expression" << SourceRange(Tok.getLocation(), TentativeParseLoc);
- }
-
return TPR == TPResult::True();
}