Skip to content

Commit

Permalink
Ignore DenseMap uninitialized variable
Browse files Browse the repository at this point in the history
  • Loading branch information
pchintalapudi committed Apr 5, 2022
1 parent 2009aff commit 7e3f091
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/aotcompile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,20 @@
#include "platform.h"

// target support
#include <llvm/ADT/Triple.h>
#include <llvm/ADT/Triple.h>\

//LLVM's DenseMap complains about a maybe uninitialized variable, we don't care about that
#ifdef _COMPILER_GCC_
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif

#include <llvm/Analysis/TargetLibraryInfo.h>

#ifdef _COMPILER_GCC_
#pragma GCC diagnostic pop
#endif

#include <llvm/Analysis/TargetTransformInfo.h>
#include <llvm/IR/DataLayout.h>
#if JL_LLVM_VERSION >= 140000
Expand Down

0 comments on commit 7e3f091

Please sign in to comment.