[llvm] [mfc] Fix RTTI for `InstrProf` intrinsics (PR #83511)

via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 29 17:11:21 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 1a2960bab6381f2b288328e2371829b460ac020c 6344b6a0618006ddbaac6c773dd39f1f49de7530 -- llvm/include/llvm/IR/IntrinsicInst.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/include/llvm/IR/IntrinsicInst.h b/llvm/include/llvm/IR/IntrinsicInst.h
index 2bd4f94f53..7ac576240e 100644
--- a/llvm/include/llvm/IR/IntrinsicInst.h
+++ b/llvm/include/llvm/IR/IntrinsicInst.h
@@ -1455,7 +1455,7 @@ class InstrProfTimestampInst;
 class InstrProfValueProfileInst;
 class InstrProfCntrInstBase : public InstrProfInstBase {
 public:
-  static bool classof(const Value *V){
+  static bool classof(const Value *V) {
     return isa<InstProfCoverInst>(V) || isa<InstProfIncrementInst>(V) ||
            isa<InstrProfTimestampInst>(V) || isa<InstrProfValueProfileInst>(V);
   }

``````````

</details>


https://github.com/llvm/llvm-project/pull/83511


More information about the llvm-commits mailing list