diff options
author | Kazu Hirata <kazu@google.com> | 2022-06-20 22:59:26 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-06-20 22:59:26 -0700 |
commit | ca4af13e480e856f8f889c1e145308fc4eb69816 (patch) | |
tree | b5372eb07d3ff696b42b5803dc28bceec68f5c78 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 7a47ee51a145a40332311330ef45b5d62d8ae023 (diff) | |
download | llvm-ca4af13e480e856f8f889c1e145308fc4eb69816.zip llvm-ca4af13e480e856f8f889c1e145308fc4eb69816.tar.gz llvm-ca4af13e480e856f8f889c1e145308fc4eb69816.tar.bz2 |
[clang] Don't use Optional::getValue (NFC)
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index 7d75d18..96f36ce 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -502,8 +502,7 @@ void CodeGenFunction::FinishFunction(SourceLocation EndLoc) { getContext().getTargetInfo().getVScaleRange(getLangOpts()); if (VScaleRange) { CurFn->addFnAttr(llvm::Attribute::getWithVScaleRangeArgs( - getLLVMContext(), VScaleRange.getValue().first, - VScaleRange.getValue().second)); + getLLVMContext(), VScaleRange->first, VScaleRange->second)); } // If we generated an unreachable return block, delete it now. |