aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-11-17 08:35:29 +0000
committerDuncan Sands <baldrick@free.fr>2010-11-17 08:35:29 +0000
commitd261dc650a01ac5c51ab10f97f1e35aa6a770721 (patch)
tree0b7a1b8c2af289a73c8734c2eba70578a1c8f0af /include
parentce1b9ad539e67c6d05cc6b47ca5f6e62a6d91eff (diff)
downloadexternal_llvm-d261dc650a01ac5c51ab10f97f1e35aa6a770721.zip
external_llvm-d261dc650a01ac5c51ab10f97f1e35aa6a770721.tar.gz
external_llvm-d261dc650a01ac5c51ab10f97f1e35aa6a770721.tar.bz2
Previously SimplifyInstruction could report that an instruction
simplified to itself (this can only happen in unreachable blocks). Change it to return null instead. Hopefully this will fix some buildbot failures. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119490 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/InstructionSimplify.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/llvm/Analysis/InstructionSimplify.h b/include/llvm/Analysis/InstructionSimplify.h
index b59adc1..965e71b 100644
--- a/include/llvm/Analysis/InstructionSimplify.h
+++ b/include/llvm/Analysis/InstructionSimplify.h
@@ -75,8 +75,6 @@ namespace llvm {
/// SimplifyInstruction - See if we can compute a simplified version of this
/// instruction. If not, this returns null.
- /// WARNING: If called on unreachable code, an instruction may be reported
- /// to simplify to itself.
Value *SimplifyInstruction(Instruction *I, const TargetData *TD = 0,
const DominatorTree *DT = 0);