diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-10 02:25:18 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-02-10 02:25:18 +0000 |
commit | 9e95f27effc40b3bf39b4bc6b0cb425079b53587 (patch) | |
tree | 8efe2ae311c282abb4076ba3e781194dd3a1c79c /llvm/lib/IR/Verifier.cpp | |
parent | bcf327af7b922955c1853666ea803b1e22420034 (diff) | |
download | bcm5719-llvm-9e95f27effc40b3bf39b4bc6b0cb425079b53587.tar.gz bcm5719-llvm-9e95f27effc40b3bf39b4bc6b0cb425079b53587.zip |
Verifier: reuse getInlinedAt() result, NFC
llvm-svn: 228655
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r-- | llvm/lib/IR/Verifier.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index 3db73f55739..f66cd478e94 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/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<MDLocation>(N.getInlinedAt()), - "inlined-at should be a location", &N, N.getInlinedAt()); + if (auto *IA = N.getInlinedAt()) + Assert2(isa<MDLocation>(IA), "inlined-at should be a location", &N, IA); } void Verifier::visitGenericDebugNode(const GenericDebugNode &N) { |