[llvm] f5bab24 - [ValueList] Include Error.h (NFC)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 28 04:26:31 PDT 2022


Author: Nikita Popov
Date: 2022-06-28T13:26:20+02:00
New Revision: f5bab24afe51bf1574228f45072c248cbdfd3946

URL: https://github.com/llvm/llvm-project/commit/f5bab24afe51bf1574228f45072c248cbdfd3946
DIFF: https://github.com/llvm/llvm-project/commit/f5bab24afe51bf1574228f45072c248cbdfd3946.diff

LOG: [ValueList] Include Error.h (NFC)

Hopefully fixes clang-ppc64-aix. Apparently std::function can't
be instantiated with a forward declared type in some environments.

Added: 
    

Modified: 
    llvm/lib/Bitcode/Reader/ValueList.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Bitcode/Reader/ValueList.h b/llvm/lib/Bitcode/Reader/ValueList.h
index 1f321788650d..995d46f01f75 100644
--- a/llvm/lib/Bitcode/Reader/ValueList.h
+++ b/llvm/lib/Bitcode/Reader/ValueList.h
@@ -14,6 +14,7 @@
 #define LLVM_LIB_BITCODE_READER_VALUELIST_H
 
 #include "llvm/IR/ValueHandle.h"
+#include "llvm/Support/Error.h"
 #include <cassert>
 #include <utility>
 #include <vector>
@@ -22,7 +23,6 @@ namespace llvm {
 
 class Constant;
 class Error;
-template <typename T> class Expected;
 class Type;
 class Value;
 


        


More information about the llvm-commits mailing list