projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f16cb03
)
Verifier: reuse getInlinedAt() result, NFC
author
Duncan P. N. Exon Smith
<dexonsmith@apple.com>
Tue, 10 Feb 2015 02:25:18 +0000
(
02:25
+0000)
committer
Duncan P. N. Exon Smith
<dexonsmith@apple.com>
Tue, 10 Feb 2015 02:25:18 +0000
(
02:25
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228655
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/IR/Verifier.cpp
patch
|
blob
|
history
diff --git
a/lib/IR/Verifier.cpp
b/lib/IR/Verifier.cpp
index 3db73f5573959068918a817684411147a0615ad5..f66cd478e94dbe71bbbf879fd8e32859ed1d3cfa 100644
(file)
--- 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<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) {