[clang] 9fa15e0 - [CodeGen] Remove an unused MakeAddrLValue() overload (NFC)

Nikita Popov via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 16 02:49:29 PST 2021


Author: Nikita Popov
Date: 2021-12-16T11:49:20+01:00
New Revision: 9fa15e0073b97dc2aa3482f297c13cb9509238e4

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

LOG: [CodeGen] Remove an unused MakeAddrLValue() overload (NFC)

This is unused and we should prefer the overloads accepting Address.

Added: 
    

Modified: 
    clang/lib/CodeGen/CodeGenFunction.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index bb60e22e4368..6b310d32e28b 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -2498,12 +2498,6 @@ class CodeGenFunction : public CodeGenTypeCache {
                             LValueBaseInfo(Source), CGM.getTBAAAccessInfo(T));
   }
 
-  LValue MakeAddrLValue(llvm::Value *V, QualType T, CharUnits Alignment,
-                        LValueBaseInfo BaseInfo, TBAAAccessInfo TBAAInfo) {
-    return LValue::MakeAddr(Address(V, Alignment), T, getContext(),
-                            BaseInfo, TBAAInfo);
-  }
-
   LValue
   MakeAddrLValueWithoutTBAA(Address Addr, QualType T,
                             AlignmentSource Source = AlignmentSource::Type) {


        


More information about the cfe-commits mailing list