diff options
Diffstat (limited to 'contrib/llvm-project/clang/lib/CodeGen/CGCall.h')
-rw-r--r-- | contrib/llvm-project/clang/lib/CodeGen/CGCall.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/llvm-project/clang/lib/CodeGen/CGCall.h b/contrib/llvm-project/clang/lib/CodeGen/CGCall.h index 509ca43a9784..e3d9fec6d363 100644 --- a/contrib/llvm-project/clang/lib/CodeGen/CGCall.h +++ b/contrib/llvm-project/clang/lib/CodeGen/CGCall.h @@ -110,7 +110,8 @@ public: /// Construct a callee. Call this constructor directly when this /// isn't a direct call. CGCallee(const CGCalleeInfo &abstractInfo, llvm::Value *functionPtr) - : KindOrFunctionPointer(SpecialKind(uintptr_t(functionPtr))) { + : KindOrFunctionPointer( + SpecialKind(reinterpret_cast<uintptr_t>(functionPtr))) { AbstractInfo = abstractInfo; assert(functionPtr && "configuring callee without function pointer"); assert(functionPtr->getType()->isPointerTy()); @@ -186,7 +187,8 @@ public: } void setFunctionPointer(llvm::Value *functionPtr) { assert(isOrdinary()); - KindOrFunctionPointer = SpecialKind(uintptr_t(functionPtr)); + KindOrFunctionPointer = + SpecialKind(reinterpret_cast<uintptr_t>(functionPtr)); } bool isVirtual() const { |