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();


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to