diff options
author | Chris Lattner <sabre@nondot.org> | 2008-12-05 18:46:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-12-05 18:46:19 +0000 |
commit | 6951381995f24dc9c7bbcacefd5a1315784f66f3 (patch) | |
tree | 083b2188be6f984863a4f049e302dcb5c65558ff /include | |
parent | 650d7f3ff4d22646def71b842f7f163c539e0aaf (diff) | |
download | llvm-6951381995f24dc9c7bbcacefd5a1315784f66f3.tar.gz llvm-6951381995f24dc9c7bbcacefd5a1315784f66f3.tar.bz2 llvm-6951381995f24dc9c7bbcacefd5a1315784f66f3.tar.xz |
Make it illegal to call getDependency* on non-memory instructions
like binary operators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60600 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/MemoryDependenceAnalysis.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Analysis/MemoryDependenceAnalysis.h b/include/llvm/Analysis/MemoryDependenceAnalysis.h index 5e0612177e..b9138ef808 100644 --- a/include/llvm/Analysis/MemoryDependenceAnalysis.h +++ b/include/llvm/Analysis/MemoryDependenceAnalysis.h @@ -180,7 +180,8 @@ namespace llvm { virtual void getAnalysisUsage(AnalysisUsage &AU) const; /// getDependency - Return the instruction on which a memory operation - /// depends. See the class comment for more details. + /// depends. See the class comment for more details. It is illegal to call + /// this on non-memory instructions. MemDepResult getDependency(Instruction *QueryInst); /// getDependencyFrom - Return the instruction on which the memory operation |