[MemorySSA] getIncomingValueForBlock should return a MemoryAccess.

Summary: getIncomingValueForBlock is just a wrapper API that should return a MemoryAccess, instead of a generic Value.

Reviewers: george.burgess.iv

Subscribers: sanjoy, jlebar, Prazek, llvm-commits

Differential Revision: https://reviews.llvm.org/D46779

llvm-svn: 332153
This commit is contained in:
Alina Sbirlea 2018-05-11 22:59:37 +00:00
parent 65631a7c13
commit c3c14666b6
1 changed files with 1 additions and 1 deletions

View File

@ -557,7 +557,7 @@ public:
return -1;
}
Value *getIncomingValueForBlock(const BasicBlock *BB) const {
MemoryAccess *getIncomingValueForBlock(const BasicBlock *BB) const {
int Idx = getBasicBlockIndex(BB);
assert(Idx >= 0 && "Invalid basic block argument!");
return getIncomingValue(Idx);