mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
add an assert. the cast<> below would catch this but a message is more
useful. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60674 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0655f73ef7
commit
3f7eb5b795
@ -454,6 +454,8 @@ MemoryDependenceAnalysis::getNonLocalDependency(Instruction *QueryInst) {
|
||||
void MemoryDependenceAnalysis::
|
||||
getNonLocalPointerDependency(Value *Pointer, bool isLoad, BasicBlock *FromBB,
|
||||
SmallVectorImpl<NonLocalDepEntry> &Result) {
|
||||
assert(isa<PointerType>(Pointer->getType()) &&
|
||||
"Can't get pointer deps of a non-pointer!");
|
||||
Result.clear();
|
||||
|
||||
// We know that the pointer value is live into FromBB find the def/clobbers
|
||||
|
Loading…
Reference in New Issue
Block a user