diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-03-15 01:23:20 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-03-15 01:23:20 +0000 |
commit | 25cf28fd7b1920dc3a92cc6f7c846a949d127dea (patch) | |
tree | 8ecd20eb29b3cccacea80487399852273690b47b /llvm/lib/IR/Verifier.cpp | |
parent | c3f2d3faa3c2c3985b6b7de782a442602c06ba5f (diff) | |
download | bcm5719-llvm-25cf28fd7b1920dc3a92cc6f7c846a949d127dea.tar.gz bcm5719-llvm-25cf28fd7b1920dc3a92cc6f7c846a949d127dea.zip |
DbgIntrinsicInst: Downcast to specialized MDNodes in accessors
Change accessors to downcast to `MDLocalVariable` and `MDExpression`,
now that we have -verify checks in place to confirm that it's safe.
llvm-svn: 232299
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r-- | llvm/lib/IR/Verifier.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index f0071060276..084bfb81a97 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -3032,8 +3032,8 @@ void Verifier::visitDbgIntrinsic(StringRef Kind, DbgIntrinsicTy &DII) { DII.getRawExpression()); // Don't call visitMDNode(), since that will recurse through operands. - visitMDLocalVariable(*cast<MDLocalVariable>(DII.getVariable())); - visitMDExpression(*cast<MDExpression>(DII.getExpression())); + visitMDLocalVariable(*DII.getVariable()); + visitMDExpression(*DII.getExpression()); } void DebugInfoVerifier::verifyDebugInfo() { |