[llvm] fccc374 - [TextAPI] fix fpermissive error
Cyndy Ishida via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 2 13:25:33 PST 2023
Author: Cyndy Ishida
Date: 2023-12-02T13:25:18-08:00
New Revision: fccc3745190c2e7f75805b7dd142c7262c7b2eb7
URL: https://github.com/llvm/llvm-project/commit/fccc3745190c2e7f75805b7dd142c7262c7b2eb7
DIFF: https://github.com/llvm/llvm-project/commit/fccc3745190c2e7f75805b7dd142c7262c7b2eb7.diff
LOG: [TextAPI] fix fpermissive error
Added:
Modified:
llvm/include/llvm/TextAPI/RecordsSlice.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/TextAPI/RecordsSlice.h b/llvm/include/llvm/TextAPI/RecordsSlice.h
index 658e70e219453..779321c96efdc 100644
--- a/llvm/include/llvm/TextAPI/RecordsSlice.h
+++ b/llvm/include/llvm/TextAPI/RecordsSlice.h
@@ -27,11 +27,11 @@ namespace MachO {
// triple.
class RecordsSlice {
public:
- RecordsSlice(const llvm::Triple &T) : TargetTriple(T), Target(T) {}
+ RecordsSlice(const llvm::Triple &T) : TargetTriple(T), TAPITarget(T) {}
/// Get target triple.
const llvm::Triple &getTriple() const { return TargetTriple; }
/// Get TAPI converted target.
- const Target &getTarget() const { return Target; }
+ const Target &getTarget() const { return TAPITarget; }
/// Add unspecified record to slice.
///
@@ -156,7 +156,7 @@ class RecordsSlice {
private:
const llvm::Triple TargetTriple;
// Hold tapi converted triple to avoid unecessary casts.
- const Target Target;
+ const Target TAPITarget;
/// BumpPtrAllocator to store generated/copied strings.
llvm::BumpPtrAllocator StringAllocator;
More information about the llvm-commits
mailing list