[cfe-commits] r116615 - /cfe/trunk/lib/CodeGen/CodeGenTBAA.cpp

Dan Gohman gohman at apple.com
Fri Oct 15 13:24:53 PDT 2010


Author: djg
Date: Fri Oct 15 15:24:53 2010
New Revision: 116615

URL: http://llvm.org/viewvc/llvm-project?rev=116615&view=rev
Log:
Add a comment.

Modified:
    cfe/trunk/lib/CodeGen/CodeGenTBAA.cpp

Modified: cfe/trunk/lib/CodeGen/CodeGenTBAA.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenTBAA.cpp?rev=116615&r1=116614&r2=116615&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenTBAA.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenTBAA.cpp Fri Oct 15 15:24:53 2010
@@ -76,7 +76,9 @@
     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);





More information about the cfe-commits mailing list