From 420047f37fc89fa51ed73f75b30ee13a24be654f Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Tue, 10 Feb 2015 02:25:18 +0000 Subject: [PATCH] Verifier: reuse getInlinedAt() result, NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228655 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/IR/Verifier.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/IR/Verifier.cpp b/lib/IR/Verifier.cpp index 3db73f55739..f66cd478e94 100644 --- a/lib/IR/Verifier.cpp +++ b/lib/IR/Verifier.cpp @@ -680,9 +680,8 @@ void Verifier::visitMetadataAsValue(const MetadataAsValue &MDV, Function *F) { void Verifier::visitMDLocation(const MDLocation &N) { Assert1(N.getScope(), "location requires a valid scope", &N); - if (N.getInlinedAt()) - Assert2(isa(N.getInlinedAt()), - "inlined-at should be a location", &N, N.getInlinedAt()); + if (auto *IA = N.getInlinedAt()) + Assert2(isa(IA), "inlined-at should be a location", &N, IA); } void Verifier::visitGenericDebugNode(const GenericDebugNode &N) { -- 2.34.1