Skip to content

Commit

Permalink
Merge remote-tracking branch 'hjudt/llvm-17.0.0' into llvm-17.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rpav committed Mar 13, 2024
2 parents 097cbe6 + 0e5b709 commit a64c79b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ project(c2ffi)
set(SOURCE_ROOT ${CMAKE_CURRENT_SOURCE_DIR})

# Apparently the LLVM package doesn't support ranges
find_package(LLVM 16.0.0 CONFIG)
find_package(LLVM 17.0.0 CONFIG)
find_package(Clang REQUIRED CONFIG)

message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
Expand Down
4 changes: 2 additions & 2 deletions src/AST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include <clang/Parse/Parser.h>
#include <llvm/ADT/ArrayRef.h>
#include <llvm/ADT/IntrusiveRefCntPtr.h>
#include <llvm/Support/Host.h>
#include <llvm/TargetParser/Host.h>
#include <llvm/Support/raw_ostream.h>
#include <llvm/Support/ConvertUTF.h>

Expand Down Expand Up @@ -242,7 +242,7 @@ Decl* C2FFIASTConsumer::make_decl(const clang::VarDecl* d, bool is_toplevel)
if(d->hasInit()) {
if(!d->getType()->isDependentType()) {
clang::EvaluatedStmt* stmt = d->ensureEvaluatedStmt();
clang::Expr* e = clang::cast<clang::Expr>(stmt->Value);
clang::Expr* e = clang::cast<clang::Expr*>(stmt->Value);
if(!e->isValueDependent() && ((v = d->evaluateValue()) || (v = d->getEvaluatedValue()))) {
if(v->isLValue()) {
clang::APValue::LValueBase base = v->getLValueBase();
Expand Down
2 changes: 1 addition & 1 deletion src/c2ffi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <iostream>

#include <llvm/Support/raw_os_ostream.h>
#include <llvm/Support/Host.h>
#include <llvm/TargetParser/Host.h>
#include <llvm/ADT/IntrusiveRefCntPtr.h>

#include <clang/Basic/Version.h>
Expand Down
2 changes: 1 addition & 1 deletion src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <iostream>
#include <memory>

#include <llvm/Support/Host.h>
#include <llvm/TargetParser/Host.h>
#include <llvm/ADT/IntrusiveRefCntPtr.h>
#include <llvm/Option/Option.h>

Expand Down
2 changes: 1 addition & 1 deletion src/options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <getopt.h>
#include <sys/stat.h>

#include <llvm/Support/Host.h>
#include <llvm/TargetParser/Host.h>

#include "c2ffi.h"
#include "c2ffi/opt.h"
Expand Down

0 comments on commit a64c79b

Please sign in to comment.