aboutsummaryrefslogtreecommitdiff
path: root/AST/Type.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'AST/Type.cpp')
-rw-r--r--AST/Type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/AST/Type.cpp b/AST/Type.cpp
index 27453ca981..dca9404dc9 100644
--- a/AST/Type.cpp
+++ b/AST/Type.cpp
@@ -677,7 +677,7 @@ void TypeOfExpr::getAsStringInternal(std::string &InnerString) const {
if (!InnerString.empty()) // Prefix the basic type, e.g. 'typeof(e) X'.
InnerString = ' ' + InnerString;
std::ostringstream s;
- getUnderlyingExpr()->print(s);
+ getUnderlyingExpr()->printPretty(s);
InnerString = "typeof(" + s.str() + ")" + InnerString;
}