diff options
author | Yingwei Zheng <dtcxzyw2333@gmail.com> | 2025-08-24 19:40:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-24 19:40:40 +0800 |
commit | feac561478bbdbc28a4fe22ba070e27a3a495ffb (patch) | |
tree | 2c79e191aab55067511ce8479e2a6f5094c4716d /llvm/lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | 003cbbd4ca10a79604f55eaa9ba144c614a1e593 (diff) | |
download | llvm-feac561478bbdbc28a4fe22ba070e27a3a495ffb.zip llvm-feac561478bbdbc28a4fe22ba070e27a3a495ffb.tar.gz llvm-feac561478bbdbc28a4fe22ba070e27a3a495ffb.tar.bz2 |
[NFC][SimplifyCFG] Fix a return value in `ConstantComparesGatherer` (#155154)
`ICI->getOperand(0)` is non-null.
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index 48a9954..7a538ae 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -712,7 +712,7 @@ private: UsedICmps++; Vals.push_back(C); - return ICI->getOperand(0); + return true; } // If we have "x ult 3", for example, then we can add 0,1,2 to the set. |