mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-26 22:26:16 +00:00
Hide two different AlignMode enums in anonymous namespaces. This bug is reported by UBSan.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216001 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8308f0e30f
commit
2ac376ba34
@ -38,10 +38,12 @@ using namespace llvm;
|
||||
STATISTIC(NumTailCalls, "Number of tail calls");
|
||||
STATISTIC(NumShiftInserts, "Number of vector shift inserts");
|
||||
|
||||
namespace {
|
||||
enum AlignMode {
|
||||
StrictAlign,
|
||||
NoStrictAlign
|
||||
};
|
||||
}
|
||||
|
||||
static cl::opt<AlignMode>
|
||||
Align(cl::desc("Load/store alignment support"),
|
||||
|
@ -50,11 +50,13 @@ static cl::opt<bool>
|
||||
UseFusedMulOps("arm-use-mulops",
|
||||
cl::init(true), cl::Hidden);
|
||||
|
||||
namespace {
|
||||
enum AlignMode {
|
||||
DefaultAlign,
|
||||
StrictAlign,
|
||||
NoStrictAlign
|
||||
};
|
||||
}
|
||||
|
||||
static cl::opt<AlignMode>
|
||||
Align(cl::desc("Load/store alignment support"),
|
||||
|
Loading…
Reference in New Issue
Block a user