From 26f28a283691c83782984323270087b8fd412b4a Mon Sep 17 00:00:00 2001 From: Sanjoy Das Date: Wed, 9 Nov 2016 19:36:39 +0000 Subject: [PATCH] [Verifier] clang-format a section; NFC Suggested in D26438 since I'm touching related code. llvm-svn: 286388 --- llvm/lib/IR/Verifier.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index 31a181e..d56ff65 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -389,8 +389,8 @@ private: SmallVectorImpl &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 bool isValidMetadataArray(const MDTuple &N); @@ -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(); -- 2.7.4