Author: Timm Baeder Date: 2026-07-04T05:01:30Z New Revision: 5b53190d1209bca676ca60797a30bdd3593edbb1
URL: https://github.com/llvm/llvm-project/commit/5b53190d1209bca676ca60797a30bdd3593edbb1 DIFF: https://github.com/llvm/llvm-project/commit/5b53190d1209bca676ca60797a30bdd3593edbb1.diff LOG: [clang][bytecode] Remove unused local variable (#207480) It's unnecessary and broke a builder: https://lab.llvm.org/buildbot/#/builders/228/builds/3735 Added: Modified: clang/lib/AST/ByteCode/Interp.cpp Removed: ################################################################################ diff --git a/clang/lib/AST/ByteCode/Interp.cpp b/clang/lib/AST/ByteCode/Interp.cpp index dc93cc4fd698c..b099a3e8571f7 100644 --- a/clang/lib/AST/ByteCode/Interp.cpp +++ b/clang/lib/AST/ByteCode/Interp.cpp @@ -3231,13 +3231,6 @@ PRESERVE_NONE static bool BCP(InterpState &S, CodePtr OpPC, int32_t Offset, // We have already evaluated this speculation's EndSpeculation opcode. assert(S.SpeculationDepth == DepthBefore - 1); - // Jump to end label. This is a little tricker than just RealPC += Offset - // because our usual jump instructions don't have any arguments, to the offset - // we get is a little too much and we need to subtract the size of the - // bool and PrimType arguments again. - int32_t ParamSize = align(sizeof(PrimType)); - assert(Offset >= ParamSize); - return true; } _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
