[PATCH] D65844: [MCA] Fix MSVC 19.16 build with libc++

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 9 05:40:27 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL368436: [MCA] Fix MSVC 19.16 build with libc++ (authored by adibiagio, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D65844?vs=214282&id=214366#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65844/new/

https://reviews.llvm.org/D65844

Files:
  llvm/trunk/include/llvm/MCA/SourceMgr.h


Index: llvm/trunk/include/llvm/MCA/SourceMgr.h
===================================================================
--- llvm/trunk/include/llvm/MCA/SourceMgr.h
+++ llvm/trunk/include/llvm/MCA/SourceMgr.h
@@ -16,12 +16,13 @@
 #define LLVM_MCA_SOURCEMGR_H
 
 #include "llvm/ADT/ArrayRef.h"
+#include "llvm/MCA/Instruction.h"
 
 namespace llvm {
 namespace mca {
 
-class Instruction;
-
+// MSVC >= 19.15, < 19.20 need to see the definition of class Instruction to
+// prevent compiler error C2139 about intrinsic type trait '__is_assignable'.
 typedef std::pair<unsigned, const Instruction &> SourceRef;
 
 class SourceMgr {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65844.214366.patch
Type: text/x-patch
Size: 622 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190809/192bd64e/attachment-0001.bin>


More information about the llvm-commits mailing list