[cse] Small cleanup.

Swift SVN r10802
This commit is contained in:
Michael Gottesman
2013-12-04 22:46:37 +00:00
parent 25d0ab2c3a
commit c99958d013

View File

@@ -102,10 +102,10 @@ unsigned llvm::DenseMapInfo<SimpleValue>::getHashValue(SimpleValue Val) {
X->getGlobal());
}
case ValueKind::IntegerLiteralInst: {
IntegerLiteralInst *IntLiteral = cast<IntegerLiteralInst>(Inst);
auto *X = cast<IntegerLiteralInst>(Inst);
return llvm::hash_combine(unsigned(ValueKind::IntegerLiteralInst),
IntLiteral->getType(),
IntLiteral->getValue());
X->getType(),
X->getValue());
}
default:
llvm_unreachable("Unhandled ValueKind.");