mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[cse] Small cleanup.
Swift SVN r10802
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user