[clang] f9eaa46 - Fix erroneous edit in https://github.com/llvm/llvm-project/actions/runs/394499364

Zahira Ammarguellat via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 1 12:45:58 PST 2020


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


        


More information about the cfe-commits mailing list