diff options
Diffstat (limited to 'llvm/lib/IR/Instructions.cpp')
-rw-r--r-- | llvm/lib/IR/Instructions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/Instructions.cpp b/llvm/lib/IR/Instructions.cpp index 5efd608..22e8ca7 100644 --- a/llvm/lib/IR/Instructions.cpp +++ b/llvm/lib/IR/Instructions.cpp @@ -4497,7 +4497,7 @@ SwitchInstProfUpdateWrapper::CaseWeightOpt SwitchInstProfUpdateWrapper::getSuccessorWeight(unsigned idx) { if (!Weights) return None; - return Weights.getValue()[idx]; + return (*Weights)[idx]; } void SwitchInstProfUpdateWrapper::setSuccessorWeight( @@ -4509,7 +4509,7 @@ void SwitchInstProfUpdateWrapper::setSuccessorWeight( Weights = SmallVector<uint32_t, 8>(SI.getNumSuccessors(), 0); if (Weights) { - auto &OldW = Weights.getValue()[idx]; + auto &OldW = (*Weights)[idx]; if (*W != OldW) { Changed = true; OldW = *W; |