aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Type.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-05-22 10:22:18 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-05-22 10:22:18 +0000
commit6409625011e4a11ff07956ff46a44d6ca4473992 (patch)
treefca7ea088a3da7d97e46478a12d8ef67e897b13d /lib/AST/Type.cpp
parent3d8216a9d325e095414302bda7a0af9549f9c40b (diff)
Parse typeof-specifier the same way as sizeof/alignof are parsed.
-Makes typeof consistent with sizeof/alignof -Fixes a bug when '>' is in a typeof expression, inside a template type param: A<typeof(x>1)> a; git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72255 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Type.cpp')
-rw-r--r--lib/AST/Type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp
index b0fdccbdc9..fd498d534c 100644
--- a/lib/AST/Type.cpp
+++ b/lib/AST/Type.cpp
@@ -1324,7 +1324,7 @@ void TypeOfExprType::getAsStringInternal(std::string &InnerString) const {
std::string Str;
llvm::raw_string_ostream s(Str);
getUnderlyingExpr()->printPretty(s);
- InnerString = "typeof(" + s.str() + ")" + InnerString;
+ InnerString = "typeof " + s.str() + InnerString;
}
void TypeOfType::getAsStringInternal(std::string &InnerString) const {