Author: Zahira Ammarguellat
Date: 2020-12-01T12:34:18-08:00
New Revision: f9eaa4650f5d5948af7050efef9d4098ff7f0ae8

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

LOG: Fix erroneous edit in 
https://github.com/llvm/llvm-project/actions/runs/394499364

Added: 
    

Modified: 
    clang/lib/Sema/SemaLookup.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Sema/SemaLookup.cpp b/clang/lib/Sema/SemaLookup.cpp
index 34065a5a212a..16dd8f510596 100644
--- a/clang/lib/Sema/SemaLookup.cpp
+++ b/clang/lib/Sema/SemaLookup.cpp
@@ -2576,8 +2576,6 @@ namespace {
 
     bool addClassTransitive(CXXRecordDecl *RD) {
       Classes.insert(RD);
-      if (InstantiationLoc.isInvalid())
-        InstantiationLoc = RD->getLocation();
       return ClassesTransitive.insert(RD);
     }
 


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to