diff options
| author | Eric Christopher <echristo@gmail.com> | 2015-01-30 23:46:40 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2015-01-30 23:46:40 +0000 |
| commit | 1e5133445918c2db16f2995e036a3aa92f67cbbe (patch) | |
| tree | 719bf479b3ee13b160d73b73abeb74939ee61e68 /llvm/lib | |
| parent | aab9677f65072b073991b126b75cc749d69963f9 (diff) | |
| download | bcm5719-llvm-1e5133445918c2db16f2995e036a3aa92f67cbbe.tar.gz bcm5719-llvm-1e5133445918c2db16f2995e036a3aa92f67cbbe.zip | |
Avoid using the cast and use the templated accessor function.
llvm-svn: 227643
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp b/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp index 2898e505e32..8735ca08e3e 100644 --- a/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp +++ b/llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp @@ -58,7 +58,7 @@ public: FnAttrs.hasAttribute(AttributeSet::FunctionIndex, Attribute::OptimizeForSize) || FnAttrs.hasAttribute(AttributeSet::FunctionIndex, Attribute::MinSize); - Subtarget = &static_cast<const AArch64Subtarget &>(MF.getSubtarget()); + Subtarget = &MF.getSubtarget<AArch64Subtarget>(); return SelectionDAGISel::runOnMachineFunction(MF); } |

