Author: Erich Keane Date: 2021-10-20T12:53:51-07:00 New Revision: 8dc44d8dd872eadf112c43fa7784110a43ccb683
URL: https://github.com/llvm/llvm-project/commit/8dc44d8dd872eadf112c43fa7784110a43ccb683 DIFF: https://github.com/llvm/llvm-project/commit/8dc44d8dd872eadf112c43fa7784110a43ccb683.diff LOG: Remove include of 'type_info' from ext-int test. Originally I thought that I needed to do a #include to trick the compiler into letting me use typeid I believe, but Aaron explained that it was just looking for the type_info type. I had to give it some public/private members to make it emit the same as before, but this ought to be a 'perfect' replacement. Added: Modified: clang/test/CodeGenCXX/ext-int.cpp Removed: ################################################################################ diff --git a/clang/test/CodeGenCXX/ext-int.cpp b/clang/test/CodeGenCXX/ext-int.cpp index 88b5ff91d470..3d6457f916b7 100644 --- a/clang/test/CodeGenCXX/ext-int.cpp +++ b/clang/test/CodeGenCXX/ext-int.cpp @@ -10,7 +10,9 @@ // RUN: %clang_cc1 -triple i386-windows-pc -O3 -disable-llvm-passes -I%S -emit-llvm -o - %s | FileCheck %s --check-prefixes=CHECK,WIN,WIN32,NoNewStructPathTBAA // RUN: %clang_cc1 -triple i386-windows-pc -O3 -disable-llvm-passes -I%S -new-struct-path-tbaa -emit-llvm -o - %s | FileCheck %s --check-prefixes=CHECK,WIN,WIN32,NewStructPathTBAA -#include <typeinfo> +namespace std { + class type_info { public: virtual ~type_info(); private: const char * name; }; +} // namespace std // Ensure that the layout for these structs is the same as the normal bitfield // layouts. _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits