[llvm-commits] CVS: llvm/lib/VMCore/Instructions.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Aug 4 17:49:18 PDT 2005
Changes in directory llvm/lib/VMCore:
Instructions.cpp updated: 1.22 -> 1.23
---
Log message:
Mark hasConstantValue as a const method
---
Diffs of the changes: (+1 -1)
Instructions.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/VMCore/Instructions.cpp
diff -u llvm/lib/VMCore/Instructions.cpp:1.22 llvm/lib/VMCore/Instructions.cpp:1.23
--- llvm/lib/VMCore/Instructions.cpp:1.22 Thu Aug 4 18:50:43 2005
+++ llvm/lib/VMCore/Instructions.cpp Thu Aug 4 19:49:06 2005
@@ -135,7 +135,7 @@
/// hasConstantValue - If the specified PHI node always merges together the same
/// value, return the value, otherwise return null.
///
-Value *PHINode::hasConstantValue(bool AllowNonDominatingInstruction) {
+Value *PHINode::hasConstantValue(bool AllowNonDominatingInstruction) const {
// If the PHI node only has one incoming value, eliminate the PHI node...
if (getNumIncomingValues() == 1)
return getIncomingValue(0);
More information about the llvm-commits
mailing list