mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-11 06:06:52 +00:00
add an assert. the cast<> below would catch this but a message is more
useful. llvm-svn: 60674
This commit is contained in:
parent
8cd875dac6
commit
1ff38d6629
@ -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…
x
Reference in New Issue
Block a user