diff options
author | Steve Naroff <snaroff@apple.com> | 2007-08-05 03:24:45 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2007-08-05 03:24:45 +0000 |
commit | 1bfd5cc29035e4bfccca855160109b07c5e85416 (patch) | |
tree | 0e925c062ccb86747f1c08f19949652adbdc62be | |
parent | 69625f4925646669f68caa234cd9133261acaaa1 (diff) |
Remove a space from "typeof" printing. It was causing the following error...
[dylan:clang/test/Parser] admin% ../../../../Debug/bin/clang -parse-ast-check typeof.c
Warnings expected but not seen:
Line 21: incompatible types assigning 'typeof(*pi) const' to 'int *'
Warnings seen but not expected:
Line 21: incompatible types assigning 'typeof(*pi) const' to 'int *'
Also corrected a typo from my previous commit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40832 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | AST/Type.cpp | 2 | ||||
-rw-r--r-- | Sema/SemaExpr.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/AST/Type.cpp b/AST/Type.cpp index 2ef457e453..afdd3cc1f7 100644 --- a/AST/Type.cpp +++ b/AST/Type.cpp @@ -658,7 +658,7 @@ void TypeOfExpr::getAsStringInternal(std::string &InnerString) const { InnerString = ' ' + InnerString; std::ostringstream s; getUnderlyingExpr()->print(s); - InnerString = "typeof(" + s.str() + ") " + InnerString; + InnerString = "typeof(" + s.str() + ")" + InnerString; } void TypeOfType::getAsStringInternal(std::string &InnerString) const { diff --git a/Sema/SemaExpr.cpp b/Sema/SemaExpr.cpp index bfa6f882b5..05af3e0ace 100644 --- a/Sema/SemaExpr.cpp +++ b/Sema/SemaExpr.cpp @@ -94,7 +94,7 @@ Sema::ExprResult Sema::ParseIdentifierExpr(Scope *S, SourceLocation Loc, // sizeof(blockvardecl); // type is "int [5]" (cannot convert to "int *") // } // - // If we converted blockvardecl (at this level) is would be be incorrect + // If we converted blockvardecl (at this level) it would be be incorrect // for the sizeof and address of (&) operators (see C99 6.3.2.1p[2-4]). // This doesn't matter for parmvardecl, since arrays are always passed by // reference (i.e. the [5] on parmvardecl is superfluous). |