Author: Vassil Vassilev
Date: 2026-01-12T10:38:21+02:00
New Revision: 1f1dee3b2e9e552e3eebdb1c5aacfdc53c4ed0c8

URL: 
https://github.com/llvm/llvm-project/commit/1f1dee3b2e9e552e3eebdb1c5aacfdc53c4ed0c8
DIFF: 
https://github.com/llvm/llvm-project/commit/1f1dee3b2e9e552e3eebdb1c5aacfdc53c4ed0c8.diff

LOG: Fix gcc name shadow warning. (#175490)

Addresses comment in #175322

Added: 
    

Modified: 
    clang/unittests/Interpreter/OutOfProcessInterpreterTests.cpp

Removed: 
    


################################################################################
diff  --git a/clang/unittests/Interpreter/OutOfProcessInterpreterTests.cpp 
b/clang/unittests/Interpreter/OutOfProcessInterpreterTests.cpp
index 225d6c8c66cab..9df941d6cf8e1 100644
--- a/clang/unittests/Interpreter/OutOfProcessInterpreterTests.cpp
+++ b/clang/unittests/Interpreter/OutOfProcessInterpreterTests.cpp
@@ -113,7 +113,7 @@ class OutOfProcessInterpreterTest : public 
InterpreterTestBase {
 
 struct OutOfProcessInterpreterInfo {
   std::string OrcRuntimePath;
-  std::unique_ptr<Interpreter> Interpreter;
+  std::unique_ptr<Interpreter> Interp;
 };
 
 static OutOfProcessInterpreterInfo
@@ -180,7 +180,7 @@ TEST_F(OutOfProcessInterpreterTest, 
SanityWithRemoteExecution) {
 
   OutOfProcessInterpreterInfo Info =
       createInterpreterWithRemoteExecution(io_ctx);
-  Interpreter *Interp = Info.Interpreter.get();
+  Interpreter *Interp = Info.Interp.get();
   ASSERT_TRUE(Interp);
 
   using PTU = PartialTranslationUnit;
@@ -205,7 +205,7 @@ TEST_F(OutOfProcessInterpreterTest, FindRuntimeInterface) {
   ASSERT_TRUE(io_ctx->initializeTempFiles());
 
   OutOfProcessInterpreterInfo I = createInterpreterWithRemoteExecution(io_ctx);
-  ASSERT_TRUE(I.Interpreter);
+  ASSERT_TRUE(I.Interp);
 
   // FIXME: Not yet supported.
   // cantFail(I->Parse("int a = 1; a"));


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

Reply via email to