MCPcopy Create free account
hub / github.com/GANGE666/xVMP / shrinkTo

Method shrinkTo

src/lib/Bitcode/Reader/MetadataLoader.cpp:157–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155 }
156
157 void shrinkTo(unsigned N) {
158 assert(N <= size() && "Invalid shrinkTo request!");
159 assert(ForwardReference.empty() && "Unexpected forward refs");
160 assert(UnresolvedNodes.empty() && "Unexpected unresolved node");
161 MetadataPtrs.resize(N);
162 }
163
164 /// Return the given metadata, creating a replaceable forward reference if
165 /// necessary.

Callers

nothing calls this directly

Calls 4

assertFunction · 0.50
sizeFunction · 0.50
emptyMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected