浏览代码

Add a comment.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116615 91177308-0d34-0410-b5e6-96231b3b80d8
Dan Gohman 15 年之前
父节点
当前提交
2f8c21d880
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      lib/CodeGen/CodeGenTBAA.cpp

+ 3 - 1
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);