Skip to content

Commit

Permalink
[Verifier] clang-format a section; NFC
Browse files Browse the repository at this point in the history
Suggested in D26438 since I'm touching related code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286388 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
sanjoy committed Nov 9, 2016
1 parent e3d8a20 commit e77b2fd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/IR/Verifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,8 @@ class Verifier : public InstVisitor<Verifier>, VerifierSupport {
SmallVectorImpl<const MDNode *> &Requirements);
void visitFunction(const Function &F);
void visitBasicBlock(BasicBlock &BB);
void visitRangeMetadata(Instruction& I, MDNode* Range, Type* Ty);
void visitDereferenceableMetadata(Instruction& I, MDNode* MD);
void visitRangeMetadata(Instruction &I, MDNode *Range, Type *Ty);
void visitDereferenceableMetadata(Instruction &I, MDNode *MD);
void visitTBAAMetadata(Instruction &I, MDNode *MD);

template <class Ty> bool isValidMetadataArray(const MDTuple &N);
Expand Down Expand Up @@ -2968,10 +2968,8 @@ static bool isContiguous(const ConstantRange &A, const ConstantRange &B) {
return A.getUpper() == B.getLower() || A.getLower() == B.getUpper();
}

void Verifier::visitRangeMetadata(Instruction& I,
MDNode* Range, Type* Ty) {
assert(Range &&
Range == I.getMetadata(LLVMContext::MD_range) &&
void Verifier::visitRangeMetadata(Instruction &I, MDNode *Range, Type *Ty) {
assert(Range && Range == I.getMetadata(LLVMContext::MD_range) &&
"precondition violation");

unsigned NumOperands = Range->getNumOperands();
Expand Down

0 comments on commit e77b2fd

Please sign in to comment.