From 8d3b67ce2366b31a5cf92dcdac2b66b3a0397ad8 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sun, 24 Dec 2006 18:42:29 +0000 Subject: [PATCH] Fix some comments. llvm-svn: 32758 --- lib/VMCore/Constants.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/VMCore/Constants.cpp b/lib/VMCore/Constants.cpp index 4bfd1dcf8d4..4375bf1eb16 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 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 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); }