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 | 1d8b24878f4440dbb4eae1bc020d6e802edbc37d (patch) | |
tree | a7dbec697f393bf2054de62a5118946f8df43f13 /llvm/lib | |
parent | 0a94dec78af6a2c04f068c0a1c33777c44b6766a (diff) | |
download | bcm5719-llvm-1d8b24878f4440dbb4eae1bc020d6e802edbc37d.tar.gz bcm5719-llvm-1d8b24878f4440dbb4eae1bc020d6e802edbc37d.zip |
Mark hasConstantValue as a const method
llvm-svn: 22666
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/VMCore/Instructions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp index 035edb320a6..a3bd468fccf 100644 --- a/llvm/lib/VMCore/Instructions.cpp +++ b/llvm/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); |