[AST] Move a function definition into the cpp [NFC]

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@340382 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Philip Reames
2018-08-22 03:32:52 +00:00
parent f18632847b
commit 3df4cb15d7
2 changed files with 13 additions and 11 deletions
+12
View File
@@ -252,6 +252,18 @@ bool AliasSet::aliasesUnknownInst(const Instruction *Inst,
return false;
}
Instruction* AliasSet::getUniqueInstruction() {
if (size() != 0)
// Can't track source of pointer, might be many instruction
return nullptr;
if (AliasAny)
// May have collapses alias set
return nullptr;
if (1 != UnknownInsts.size())
return nullptr;
return cast<Instruction>(UnknownInsts[0]);
}
void AliasSetTracker::clear() {
// Delete all the PointerRec entries.
for (PointerMapType::iterator I = PointerMap.begin(), E = PointerMap.end();