mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 16:37:42 +00:00
Use cast<> instead of a C-style cast to get some free assertions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136771 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fb5179a2fa
commit
e3fbe6c0fb
@ -66,12 +66,12 @@ namespace llvm {
|
||||
inline MDNode *MapValue(const MDNode *V, ValueToValueMapTy &VM,
|
||||
RemapFlags Flags = RF_None,
|
||||
ValueMapTypeRemapper *TypeMapper = 0) {
|
||||
return (MDNode*)MapValue((const Value*)V, VM, Flags, TypeMapper);
|
||||
return cast<MDNode>(MapValue((const Value*)V, VM, Flags, TypeMapper));
|
||||
}
|
||||
inline Constant *MapValue(const Constant *V, ValueToValueMapTy &VM,
|
||||
RemapFlags Flags = RF_None,
|
||||
ValueMapTypeRemapper *TypeMapper = 0) {
|
||||
return (Constant*)MapValue((const Value*)V, VM, Flags, TypeMapper);
|
||||
return cast<Constant>(MapValue((const Value*)V, VM, Flags, TypeMapper));
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user