[ExecutionEngine] Remove unnecessary casts (NFC) (#146218)
R and K are already of Edge::Kind in all these cases.
This commit is contained in:
@@ -523,7 +523,7 @@ private:
|
||||
case ELFTLSDescCall:
|
||||
return "ELFTLSDescCall";
|
||||
default:
|
||||
return getGenericEdgeKindName(static_cast<Edge::Kind>(R));
|
||||
return getGenericEdgeKindName(R);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -545,7 +545,7 @@ private:
|
||||
case MachONegDelta64:
|
||||
return "MachONegDelta64";
|
||||
default:
|
||||
return getGenericEdgeKindName(static_cast<Edge::Kind>(R));
|
||||
return getGenericEdgeKindName(R);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ const char *getEdgeKindName(Edge::Kind R) {
|
||||
case RequestTLSDescEntryAndTransformToPageOffset12:
|
||||
return "RequestTLSDescEntryAndTransformToPageOffset12";
|
||||
default:
|
||||
return getGenericEdgeKindName(static_cast<Edge::Kind>(R));
|
||||
return getGenericEdgeKindName(R);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -137,7 +137,7 @@ const char *getEdgeKindName(Edge::Kind K) {
|
||||
case RequestTLSDescInGOTAndTransformToDelta34:
|
||||
return "RequestTLSDescInGOTAndTransformToDelta34";
|
||||
default:
|
||||
return getGenericEdgeKindName(static_cast<Edge::Kind>(K));
|
||||
return getGenericEdgeKindName(K);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -75,7 +75,7 @@ const char *getEdgeKindName(Edge::Kind K) {
|
||||
case RequestTLVPAndTransformToPCRel32TLVPLoadREXRelaxable:
|
||||
return "RequestTLVPAndTransformToPCRel32TLVPLoadREXRelaxable";
|
||||
default:
|
||||
return getGenericEdgeKindName(static_cast<Edge::Kind>(K));
|
||||
return getGenericEdgeKindName(K);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user