[all-commits] [llvm/llvm-project] ed0abc: [flang] Correctly detect overlapping integer cases

Tim Keith via All-commits all-commits at lists.llvm.org
Mon Sep 14 09:11:21 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ed0abc8ad3f3be99f40c25238ec42065a8ba077f
      https://github.com/llvm/llvm-project/commit/ed0abc8ad3f3be99f40c25238ec42065a8ba077f
  Author: Tim Keith <tkeith at nvidia.com>
  Date:   2020-09-14 (Mon, 14 Sep 2020)

  Changed paths:
    M flang/include/flang/Evaluate/integer.h
    M flang/test/Semantics/case01.f90

  Log Message:
  -----------
  [flang] Correctly detect overlapping integer cases

Integer case values were being compared as unsigned by operator<
on evaluate::value::Integer. Change that to signed so that overlap
can be detected correctly.

Explicit CompareUnsigned and BLT are still available if unsigned
comparison is needed.

Fixes https://bugs.llvm.org/show_bug.cgi?id=47309

Differential Revision: https://reviews.llvm.org/D87595




More information about the All-commits mailing list