mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
[C++] Use 'nullptr'. Transforms edition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207196 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -53,7 +53,8 @@ namespace {
|
||||
Constant* High;
|
||||
BasicBlock* BB;
|
||||
|
||||
CaseRange(Constant *low = 0, Constant *high = 0, BasicBlock *bb = 0) :
|
||||
CaseRange(Constant *low = nullptr, Constant *high = nullptr,
|
||||
BasicBlock *bb = nullptr) :
|
||||
Low(low), High(high), BB(bb) { }
|
||||
};
|
||||
|
||||
@ -184,7 +185,7 @@ BasicBlock* LowerSwitch::newLeafBlock(CaseRange& Leaf, Value* Val,
|
||||
F->getBasicBlockList().insert(++FI, NewLeaf);
|
||||
|
||||
// Emit comparison
|
||||
ICmpInst* Comp = NULL;
|
||||
ICmpInst* Comp = nullptr;
|
||||
if (Leaf.Low == Leaf.High) {
|
||||
// Make the seteq instruction...
|
||||
Comp = new ICmpInst(*NewLeaf, ICmpInst::ICMP_EQ, Val,
|
||||
|
Reference in New Issue
Block a user