[all-commits] [llvm/llvm-project] 5022a5: Mark llvm::ConstantExpr::getAsInstruction as const

AlexDenisov via All-commits all-commits at lists.llvm.org
Tue Nov 12 05:24:17 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5022a5fcaef9e8e5a739d5794954d67bc6f291a2
      https://github.com/llvm/llvm-project/commit/5022a5fcaef9e8e5a739d5794954d67bc6f291a2
  Author: Alex Denisov <alex at lowlevelbits.org>
  Date:   2019-11-12 (Tue, 12 Nov 2019)

  Changed paths:
    M llvm/include/llvm/IR/Constants.h
    M llvm/lib/IR/Constants.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list