diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-12-24 18:42:29 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-12-24 18:42:29 +0000 |
commit | 4fa021a1a9e062683e203d775bae897fb8b75fac (patch) | |
tree | aba5ab5dac957961245a4bc2a9d05148a7e348c1 | |
parent | 0f9d82c5c4c8149c86d13e2d3adab10f8ba9f948 (diff) |
Fix some comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32758 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/Constants.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index 4bfd1dcf8d..4375bf1eb1 100644 --- a/lib/VMCore/Constants.cpp +++ b/lib/VMCore/Constants.cpp @@ -1818,7 +1818,7 @@ ConstantExpr::getICmp(unsigned short pred, Constant* LHS, Constant* RHS) { std::vector<Constant*> ArgVec; ArgVec.push_back(LHS); ArgVec.push_back(RHS); - // Fake up an opcode value that encodes both the opcode and predicate + // Get the key type with both the opcode and predicate const ExprMapKeyType Key(Instruction::ICmp, ArgVec, pred); return ExprConstants->getOrCreate(Type::BoolTy, Key); } @@ -1835,7 +1835,7 @@ ConstantExpr::getFCmp(unsigned short pred, Constant* LHS, Constant* RHS) { std::vector<Constant*> ArgVec; ArgVec.push_back(LHS); ArgVec.push_back(RHS); - // Fake up an opcode value that encodes both the opcode and predicate + // Get the key type with both the opcode and predicate const ExprMapKeyType Key(Instruction::FCmp, ArgVec, pred); return ExprConstants->getOrCreate(Type::BoolTy, Key); } |