OSDN Git Service

Use a two-level cast through an intptr_t, and make them C-style casts.
authorChandler Carruth <chandlerc@gmail.com>
Sat, 11 Jun 2016 08:19:59 +0000 (08:19 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 11 Jun 2016 08:19:59 +0000 (08:19 +0000)
commit9c159751a76da53ceb41ac27481cbdd20a448775
tree5c011f086f61d6762a9e9599850f572fcd5e0e22
parente42eb46ac5be446dd0c13aa9c8d62600b2848af8
Use a two-level cast through an intptr_t, and make them C-style casts.
This shouldn't have any functional difference, but it appears to be the
pattern used for other methods on DynamicLibrary, and it should avoid
the -Wpedantic warning on one of the build bots about the direct
reinterpret_cast.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272461 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Registry.h