[clang] 83ec9bd - [clang][bytecode][NFC] Remove redundant setSource() call (#215716)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 11 22:50:30 PDT 2026
Author: Timm Baeder
Date: 2026-08-12T07:50:25+02:00
New Revision: 83ec9bd7181db8e5be6de82f0d74295abf48ae91
URL: https://github.com/llvm/llvm-project/commit/83ec9bd7181db8e5be6de82f0d74295abf48ae91
DIFF: https://github.com/llvm/llvm-project/commit/83ec9bd7181db8e5be6de82f0d74295abf48ae91.diff
LOG: [clang][bytecode][NFC] Remove redundant setSource() call (#215716)
We already do that a few lines up.
Added:
Modified:
clang/lib/AST/ByteCode/EvalEmitter.cpp
Removed:
################################################################################
diff --git a/clang/lib/AST/ByteCode/EvalEmitter.cpp b/clang/lib/AST/ByteCode/EvalEmitter.cpp
index 18921ca27cd09..a54b6d2c18fa9 100644
--- a/clang/lib/AST/ByteCode/EvalEmitter.cpp
+++ b/clang/lib/AST/ByteCode/EvalEmitter.cpp
@@ -63,7 +63,6 @@ EvaluationResult EvalEmitter::interpretDecl(const VarDecl *VD, const Expr *Init,
QualType T = VD->getType();
this->ConvertResultToRValue = !Init->isGLValue() && !T->isPointerType() &&
!T->isObjCObjectPointerType();
- EvalResult.setSource(VD);
if (!this->visitDeclAndReturn(VD, Init, S.inConstantContext()))
EvalResult.setInvalid();
More information about the cfe-commits
mailing list