diff options
author | Chris Lattner <sabre@nondot.org> | 2005-08-05 00:49:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-08-05 00:49:06 +0000 |
commit | 9acbd611ec13fabf3c13f20161c0de576ea1ad60 (patch) | |
tree | 2d18c67ae7a19fbdee71caf4872fad9a6c3373cf /lib/VMCore/Instructions.cpp | |
parent | c523f4c09647bfa17c3d209cf8333522bc3c069d (diff) |
Mark hasConstantValue as a const method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22666 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Instructions.cpp')
-rw-r--r-- | lib/VMCore/Instructions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp index 035edb320a..a3bd468fcc 100644 --- a/lib/VMCore/Instructions.cpp +++ b/lib/VMCore/Instructions.cpp @@ -135,7 +135,7 @@ void PHINode::resizeOperands(unsigned NumOps) { /// 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); |