Created
December 6, 2023 18:49
-
-
Save minglotus-6/622d6aa499b491ea10b1a1cd47f7732c to your computer and use it in GitHub Desktop.
git format diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git-clang-format --diff 024718313b526a4530d7cd58886fcc157247e0ff 8c725efaaaa1f0ceffb47c5b339f7b582a2beb3f -- compiler-rt/include/profile/InstrProfData.inc compiler-rt/lib/profile/InstrProfiling.h compiler-rt/lib/profile/InstrProfilingBuffer.c compiler-rt/lib/profile/InstrProfilingInternal.h compiler-rt/lib/profile/InstrProfilingMerge.c compiler-rt/lib/profile/InstrProfilingPlatformLinux.c compiler-rt/lib/profile/InstrProfilingWriter.c llvm/include/llvm/Analysis/IndirectCallVisitor.h llvm/include/llvm/ProfileData/InstrProf.h llvm/include/llvm/ProfileData/InstrProfData.inc llvm/include/llvm/ProfileData/InstrProfReader.h llvm/include/llvm/ProfileData/InstrProfWriter.h llvm/include/llvm/Transforms/Instrumentation/InstrProfiling.h llvm/lib/ProfileData/InstrProf.cpp llvm/lib/ProfileData/InstrProfReader.cpp llvm/lib/ProfileData/InstrProfWriter.cpp llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp llvm/lib/Transforms/Instrumentation/ValueProfilePlugins.inc llvm/tools/llvm-profdata/llvm-profdata.cpp llvm/unittests/ProfileData/InstrProfTest.cpp | |
diff --git a/llvm/lib/ProfileData/InstrProfReader.cpp b/llvm/lib/ProfileData/InstrProfReader.cpp | |
index 7f599aca12f3..d39142e03251 100644 | |
--- a/llvm/lib/ProfileData/InstrProfReader.cpp | |
+++ b/llvm/lib/ProfileData/InstrProfReader.cpp | |
@@ -541,9 +541,8 @@ Error RawInstrProfReader<IntPtrT>::readNextHeader(const char *CurrentPos) { | |
template <class IntPtrT> | |
Error RawInstrProfReader<IntPtrT>::createSymtab(InstrProfSymtab &Symtab) { | |
- if (Error E = | |
- Symtab.create(StringRef(NamesStart, NamesEnd - NamesStart), | |
- StringRef(VNamesStart, VNamesEnd - VNamesStart))) | |
+ if (Error E = Symtab.create(StringRef(NamesStart, NamesEnd - NamesStart), | |
+ StringRef(VNamesStart, VNamesEnd - VNamesStart))) | |
return error(std::move(E)); | |
for (const RawInstrProf::ProfileData<IntPtrT> *I = Data; I != DataEnd; ++I) { | |
const IntPtrT FPtr = swap(I->FunctionPointer); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment