This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][NFC] Insert const_cast to avoid warning
ClosedPublic

Authored by uenoku on Dec 24 2019, 5:44 AM.

Diff Detail

Event Timeline

uenoku created this revision.Dec 24 2019, 5:44 AM

What is the warning?

rriddle accepted this revision.Dec 24 2019, 11:49 AM
This revision is now accepted and ready to land.Dec 24 2019, 11:49 AM

What is the warning?

llvm-project/mlir/include/mlir/IR/Value.h:112:47: warning: cast from 'const mlir::Value *' to 'mlir::Value *' drops const qualifier [-Wcast-qual]
  Value *operator->() const { return (Value *)this; }

Like this

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptDec 24 2019, 11:01 PM