Author: Timm Bäder Date: 2024-02-12T15:36:07+01:00 New Revision: ea8de6e4336cf82aa541c6ad951b62585c3ea55c
URL: https://github.com/llvm/llvm-project/commit/ea8de6e4336cf82aa541c6ad951b62585c3ea55c DIFF: https://github.com/llvm/llvm-project/commit/ea8de6e4336cf82aa541c6ad951b62585c3ea55c.diff LOG: [clang][Interp][NFC] Make two local variables const Added: Modified: clang/lib/AST/Interp/Pointer.cpp Removed: ################################################################################ diff --git a/clang/lib/AST/Interp/Pointer.cpp b/clang/lib/AST/Interp/Pointer.cpp index dd8868d0b1ec22..1eedbc360c1575 100644 --- a/clang/lib/AST/Interp/Pointer.cpp +++ b/clang/lib/AST/Interp/Pointer.cpp @@ -92,9 +92,9 @@ APValue Pointer::toAPValue() const { // Build the lvalue base from the block. const Descriptor *Desc = getDeclDesc(); APValue::LValueBase Base; - if (auto *VD = Desc->asValueDecl()) + if (const auto *VD = Desc->asValueDecl()) Base = VD; - else if (auto *E = Desc->asExpr()) + else if (const auto *E = Desc->asExpr()) Base = E; else llvm_unreachable("Invalid allocation type"); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits