We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f516639 commit aa4ccd6Copy full SHA for aa4ccd6
clang/lib/CodeGen/CodeGenTBAA.cpp
@@ -83,6 +83,9 @@ llvm::MDNode *CodeGenTBAA::getChar() {
83
llvm::MDNode *CodeGenTBAA::getAnyPtr(unsigned PtrDepth) {
84
assert(PtrDepth >= 1 && "Pointer must have some depth");
85
86
+ // Populate at least PtrDepth elements in AnyPtrs. These are the type nodes
87
+ // for "any" pointers of increasing pointer depth, and are organized in the
88
+ // hierarchy: any pointer <- any p2 pointer <- any p3 pointer <- ...
89
if (AnyPtrs.size() < PtrDepth) {
90
AnyPtrs.reserve(PtrDepth);
91
auto Size = Module.getDataLayout().getPointerSize();
0 commit comments