[llvm] [CallPromotionUtil] See through function alias when devirtualizing a virtual call on an alloca. (PR #80736)
Mingming Liu via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 5 15:55:14 PST 2024
================
@@ -14,6 +14,7 @@
#ifndef LLVM_ANALYSIS_TYPEMETADATAUTILS_H
#define LLVM_ANALYSIS_TYPEMETADATAUTILS_H
+#include "llvm/IR/GlobalVariable.h"
----------------
minglotus-6 wrote:
done (along with `#include <utility>`).
TIL that forward declaration is almost [always better](https://softwareengineering.stackexchange.com/questions/195806/forward-declaration-vs-include#:~:text=A%20forward%20declaration%20is%20much,will%20have%20to%20be%20recompiled.),thanks!
https://github.com/llvm/llvm-project/pull/80736
More information about the llvm-commits
mailing list