summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/Mangle.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-10-16 02:06:06 +0000
committerAnders Carlsson <andersca@mac.com>2009-10-16 02:06:06 +0000
commitf847117ac800e46780f85de2f04c594c86b358c8 (patch)
tree3108bb97b70c389ce042fe605ff0646d0e948d98 /clang/lib/CodeGen/Mangle.cpp
parent5d9134747b012b706bab56f6e2c7cf53e7c0622a (diff)
downloadbcm5719-llvm-f847117ac800e46780f85de2f04c594c86b358c8.tar.gz
bcm5719-llvm-f847117ac800e46780f85de2f04c594c86b358c8.zip
Builtin types are subsitutable if they are qualified. Fixes PR5196.
llvm-svn: 84237
Diffstat (limited to 'clang/lib/CodeGen/Mangle.cpp')
-rw-r--r--clang/lib/CodeGen/Mangle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/Mangle.cpp b/clang/lib/CodeGen/Mangle.cpp
index fd772748dbd..344ef06276b 100644
--- a/clang/lib/CodeGen/Mangle.cpp
+++ b/clang/lib/CodeGen/Mangle.cpp
@@ -705,7 +705,7 @@ void CXXNameMangler::mangleType(QualType T) {
// Only operate on the canonical type!
T = Context.getASTContext().getCanonicalType(T);
- bool IsSubstitutable = !isa<BuiltinType>(T);
+ bool IsSubstitutable = T.hasQualifiers() || !isa<BuiltinType>(T);
if (IsSubstitutable && mangleSubstitution(T))
return;
OpenPOWER on IntegriCloud