]> granicus.if.org Git - llvm/commitdiff
[CFLGraph] Add FAdd to visitConstantExpr.
authorCraig Topper <craig.topper@intel.com>
Mon, 3 Jun 2019 19:35:52 +0000 (19:35 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 3 Jun 2019 19:35:52 +0000 (19:35 +0000)
This looks like an oversight as all the other binary operators are present.

Accidentally noticed while auditing places that need FNeg handling.

No test because as noted in the review it would be contrived and amount to "don't crash"

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362441 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CFLGraph.h

index 5783c5bc9bdd5ca9e4a7e8c6c90788706baa42a1..a81ff5b15c6ce539937d2238520bb74e252d4384 100644 (file)
@@ -555,6 +555,7 @@ template <typename CFLAA> class CFLGraphBuilder {
       }
 
       case Instruction::Add:
+      case Instruction::FAdd:
       case Instruction::Sub:
       case Instruction::FSub:
       case Instruction::Mul: