diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2009-06-03 13:29:08 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2009-06-03 13:29:08 +0000 |
| commit | 922a2097733e49b869978a264837ad60eca82891 (patch) | |
| tree | 4075b1f9165f6c8d2b9a7e98b89a1348669f78fe /lib/AST/Type.cpp | |
| parent | ec2b103c267a06a66e926f62cd96767b280f5cf5 (diff) | |
Notes
Diffstat (limited to 'lib/AST/Type.cpp')
| -rw-r--r-- | lib/AST/Type.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index b2ee58f3f3558..f573744083a40 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -1410,7 +1410,7 @@ void FunctionProtoType::getAsStringInternal(std::string &S, const PrintingPolicy if (getNumArgs()) S += ", "; S += "..."; - } else if (getNumArgs() == 0) { + } else if (getNumArgs() == 0 && !Policy.CPlusPlus) { // Do not emit int() if we have a proto, emit 'int(void)'. S += "void"; } |
