Skip to content

Commit

Permalink
[MSVC] Make able to compile with MSVC (apache#6341)
Browse files Browse the repository at this point in the history
* fix: make suitable for msvc, clang

* clang-format

* refactor: use DMLC_ATTRIBUTE
  • Loading branch information
yukatayu authored and Trevor Morris committed Aug 26, 2020
1 parent c548dd5 commit 87c2b19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/target/llvm/codegen_hexagon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ bool UsesExportABI(const PrimFunc& f) {
return false;
}

__attribute__((unused)) std::ostream& operator<<(std::ostream& os, const llvm::Module& m) {
DMLC_ATTRIBUTE_UNUSED std::ostream& operator<<(std::ostream& os, const llvm::Module& m) {
std::string ms;
llvm::raw_string_ostream sos(ms);
sos << m;
Expand Down
1 change: 1 addition & 0 deletions src/te/autodiff/ad_simplify.cc
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
#include <tvm/tir/analysis.h>
#include <tvm/tir/stmt_functor.h>

#include <iterator>
#include <memory>
#include <utility>

Expand Down

0 comments on commit 87c2b19

Please sign in to comment.