summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-10-15 20:24:53 +0000
committerDan Gohman <gohman@apple.com>2010-10-15 20:24:53 +0000
commit2d0a3c7b8c31d522e8c1456bd005bd3ecf57b84b (patch)
treee09bbcec21bc9cedce335818d4eaeee4c3746f0d /clang/lib/CodeGen
parent4a3b1b3ef4b86fddd362e8bbaf6ff8187ce69735 (diff)
downloadbcm5719-llvm-2d0a3c7b8c31d522e8c1456bd005bd3ecf57b84b.tar.gz
bcm5719-llvm-2d0a3c7b8c31d522e8c1456bd005bd3ecf57b84b.zip
Add a comment.
llvm-svn: 116615
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CodeGenTBAA.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenTBAA.cpp b/clang/lib/CodeGen/CodeGenTBAA.cpp
index 5aea0f21ae5..a1f38be1229 100644
--- a/clang/lib/CodeGen/CodeGenTBAA.cpp
+++ b/clang/lib/CodeGen/CodeGenTBAA.cpp
@@ -76,7 +76,9 @@ CodeGenTBAA::getTBAAInfo(QualType QTy) {
case BuiltinType::UInt128:
return getTBAAInfo(Context.Int128Ty);
- // Other builtin types.
+ // Treat all other builtin types as distinct types. This includes
+ // treating wchar_t, char16_t, and char32_t as distinct from their
+ // "underlying types".
default:
return MetadataCache[Ty] =
getTBAAInfoForNamedType(BTy->getName(Features), Char);
OpenPOWER on IntegriCloud