projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0655f73
)
add an assert. the cast<> below would catch this but a message is more
author
Chris Lattner
<sabre@nondot.org>
Sun, 7 Dec 2008 18:45:15 +0000
(18:45 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 7 Dec 2008 18:45:15 +0000
(18:45 +0000)
useful.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60674
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/MemoryDependenceAnalysis.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/MemoryDependenceAnalysis.cpp
b/lib/Analysis/MemoryDependenceAnalysis.cpp
index 457e94fb0a1887312d828073c06990e1f25638d9..2413bbc02516c10f0fea607a0a06e0a8242305d7 100644
(file)
--- a/
lib/Analysis/MemoryDependenceAnalysis.cpp
+++ b/
lib/Analysis/MemoryDependenceAnalysis.cpp
@@
-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