Skip to content

Commit d65c196

Browse files
author
Dan Gohman
committed
Add a TBAA type for pointer types.
llvm-svn: 116544
1 parent 72911e4 commit d65c196

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/lib/CodeGen/CodeGenTBAA.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ CodeGenTBAA::getTBAAInfo(QualType QTy) {
7777
}
7878
}
7979

80+
// For now, treat all pointers as equivalent to each other.
81+
if (Ty->isPointerType())
82+
return MetadataCache[Ty] = getTBAAInfoForNamedType("TBAA.pointer", Char);
83+
8084
// For now, handle any other kind of type conservatively.
8185
return MetadataCache[Ty] = Char;
8286
}

0 commit comments

Comments
 (0)