diff options
Diffstat (limited to 'clang/lib/CodeGen/CodeGenTBAA.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenTBAA.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenTBAA.cpp b/clang/lib/CodeGen/CodeGenTBAA.cpp index bff9fa2605b..ed2b13f11cc 100644 --- a/clang/lib/CodeGen/CodeGenTBAA.cpp +++ b/clang/lib/CodeGen/CodeGenTBAA.cpp @@ -77,6 +77,10 @@ CodeGenTBAA::getTBAAInfo(QualType QTy) { } } + // For now, treat all pointers as equivalent to each other. + if (Ty->isPointerType()) + return MetadataCache[Ty] = getTBAAInfoForNamedType("TBAA.pointer", Char); + // For now, handle any other kind of type conservatively. return MetadataCache[Ty] = Char; } |

