Mark llvm::ConstantExpr::getAsInstruction as const
authorAlex Denisov <alex@lowlevelbits.org>
Tue, 12 Nov 2019 09:57:32 +0000 (10:57 +0100)
committerAlex Denisov <alex@lowlevelbits.org>
Tue, 12 Nov 2019 13:24:12 +0000 (14:24 +0100)
commit5022a5fcaef9e8e5a739d5794954d67bc6f291a2
tree6026d824b4c7fed714fcdb8fbd633831ffd8871f
parent44e5879f0fb7c28b90e8042fde81bba30b4090a3
Mark llvm::ConstantExpr::getAsInstruction as const

Summary:
getAsInstruction is the only non-const member method.
It is impossible to enforce const-correctness because of it.

Reviewers: jmolloy, majnemer

Reviewed By: jmolloy

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D70113
llvm/include/llvm/IR/Constants.h
llvm/lib/IR/Constants.cpp