summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2016-07-14 18:15:20 +0000
committerJustin Lebar <jlebar@google.com>2016-07-14 18:15:20 +0000
commit288b3376aea428ba90aaf789725b85f65ba0b3e9 (patch)
tree8e192b4bd873044045ead720d3d1f186656187a1 /llvm/lib/CodeGen/MachineInstr.cpp
parent1e6416151fa5c8fef6c1dd70e5caca64a599d782 (diff)
downloadbcm5719-llvm-288b3376aea428ba90aaf789725b85f65ba0b3e9.tar.gz
bcm5719-llvm-288b3376aea428ba90aaf789725b85f65ba0b3e9.zip
[CodeGen] Refactor MachineMemOperand::Flags's target-specific flags.
Summary: Make the target-specific flags in MachineMemOperand::Flags real, bona fide enum values. This simplifies users, prevents various constants from going out of sync, and avoids the false sense of security provided by declaring static members in classes and then forgetting to define them inside of cpp files. Reviewers: MatzeB Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D22372 llvm-svn: 275451
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index 3dbbd8780c3..ead239f604d 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -503,8 +503,6 @@ MachineMemOperand::MachineMemOperand(MachinePointerInfo ptrinfo, Flags f,
const MDNode *Ranges)
: PtrInfo(ptrinfo), Size(s), FlagVals(f), BaseAlignLog2(Log2_32(a) + 1),
AAInfo(AAInfo), Ranges(Ranges) {
- assert(MOMaxFlag == (1 << MOMaxBits) - 1 &&
- "MOMaxFlag and MOMaxBits have fallen out of sync.");
assert((PtrInfo.V.isNull() || PtrInfo.V.is<const PseudoSourceValue*>() ||
isa<PointerType>(PtrInfo.V.get<const Value*>()->getType())) &&
"invalid pointer value");
OpenPOWER on IntegriCloud