Move to the llvm 7240436c94bd02762a723a2e3551528d16c8efdb commit

This commit is contained in:
Sameer Rahmani 2022-09-13 19:30:13 +01:00
parent 0ae52e36d5
commit d87e3922ec
2 changed files with 3 additions and 6 deletions

View File

@ -17,13 +17,13 @@ Setup the githook and install dependencies using the following commands:
- doxygen (If you want to build the docs as well)
- Valgrind
- CCache (If you want faster builds specially with the LLVM)
- Boehm GC v8.2.0
- Boehm GC v8.2.0 (has to be built statically and with ~-fPIC~)
** LLVM Installation
*Important Note*: We're trying to keep Serene up to date with the LLVM release cycle till we get
to our first release. So we use the development version of the LLVM. Currently we are using
=14.0.6= branch as our reference.
=7240436c94bd02762a723a2e3551528d16c8efdb= commit as our reference.
MLIR is a part of the [[https://llvm.org][LLVM]] project and in order to build it we need to build the LLVM itself as well.
Here is a quick guide to build the latest version of the LLVM and MLIR.

View File

@ -439,10 +439,7 @@ MaybeJitAddress Halley::lookup(const char *nsName, const char *sym) const {
return expectedSymbol.takeError();
}
auto rawFPtr = expectedSymbol->getAddress();
// NOLINTNEXTLINE(performance-no-int-to-ptr)
auto fptr = reinterpret_cast<JitWrappedAddress>(rawFPtr);
auto fptr = expectedSymbol->toPtr<JitWrappedAddress>();
if (fptr == nullptr) {
return tempError(*ctx, "Lookup function is null!");