[clang] 7419792 - [clang][examples] Fix build failure (NFC)
Jie Fu via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 29 06:43:51 PDT 2024
Author: Jie Fu
Date: 2024-06-29T21:42:26+08:00
New Revision: 74197925dcb144ba31c7abfc61494c31c03d1f64
URL: https://github.com/llvm/llvm-project/commit/74197925dcb144ba31c7abfc61494c31c03d1f64
DIFF: https://github.com/llvm/llvm-project/commit/74197925dcb144ba31c7abfc61494c31c03d1f64.diff
LOG: [clang][examples] Fix build failure (NFC)
/llvm-project/clang/examples/LLVMPrintFunctionNames/LLVMPrintFunctionNames.cpp:36:20:
error: cannot use incomplete type 'llvm::Module' as a range
for (auto &F : M)
^
Added:
Modified:
clang/examples/LLVMPrintFunctionNames/LLVMPrintFunctionNames.cpp
Removed:
################################################################################
diff --git a/clang/examples/LLVMPrintFunctionNames/LLVMPrintFunctionNames.cpp b/clang/examples/LLVMPrintFunctionNames/LLVMPrintFunctionNames.cpp
index 6cb87e4b5e19c..79a315d5a4ee2 100644
--- a/clang/examples/LLVMPrintFunctionNames/LLVMPrintFunctionNames.cpp
+++ b/clang/examples/LLVMPrintFunctionNames/LLVMPrintFunctionNames.cpp
@@ -18,6 +18,7 @@
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/FrontendPluginRegistry.h"
#include "clang/Sema/Sema.h"
+#include "llvm/IR/Module.h"
#include "llvm/IR/PassManager.h"
#include "llvm/Passes/OptimizationLevel.h"
#include "llvm/Passes/PassBuilder.h"
More information about the cfe-commits
mailing list