aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-12-07 18:45:15 +0000
committerChris Lattner <sabre@nondot.org>2008-12-07 18:45:15 +0000
commitb81d425ac6c67636e3910132d107668644275892 (patch)
treea8d8153e6e4f5ba6859849e100862547f9b2fc0b /lib
parent4a15a66b70ee9dd60fc6bc3c9dfecf0030c6e9a9 (diff)
downloadexternal_llvm-b81d425ac6c67636e3910132d107668644275892.zip
external_llvm-b81d425ac6c67636e3910132d107668644275892.tar.gz
external_llvm-b81d425ac6c67636e3910132d107668644275892.tar.bz2
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
Diffstat (limited to 'lib')
-rw-r--r--lib/Analysis/MemoryDependenceAnalysis.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Analysis/MemoryDependenceAnalysis.cpp b/lib/Analysis/MemoryDependenceAnalysis.cpp
index 457e94f..2413bbc 100644
--- 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