Add a comment about odd "signed char" incompatibility between C++ and C.

llvm-svn: 116593
This commit is contained in:
Dan Gohman 2010-10-15 17:52:03 +00:00
parent eba55822d7
commit f5c5e0773e
1 changed files with 5 additions and 1 deletions

View File

@ -51,7 +51,11 @@ CodeGenTBAA::getTBAAInfo(QualType QTy) {
// For now, just emit a very minimal tree.
if (const BuiltinType *BTy = dyn_cast<BuiltinType>(Ty)) {
switch (BTy->getKind()) {
// Charactar types are special and can alias anything.
// Character types are special and can alias anything.
// In C++, this technically only includes "char" and "unsigned char",
// and not "signed char". In C, it includes all three. For now,
// the risk of exploting this detail in C++ seems likely to outweigh
// the benefit.
case BuiltinType::Char_U:
case BuiltinType::Char_S:
case BuiltinType::UChar: