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 /AST/Type.cpp | |
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
Diffstat (limited to 'AST/Type.cpp')
-rw-r--r-- | AST/Type.cpp | 2 |
1 files changed, 1 insertions, 1 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 { |