diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2011-04-10 04:44:11 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2011-04-10 04:44:11 +0000 |
| commit | 493c34a86cd837362f4c9395c1e59bda026d09db (patch) | |
| tree | 879349e4e93372eb8e0579b85b2ba108ae74fb8c /clang/lib/CodeGen | |
| parent | 53fe2bb29e801224af5c38cef004ed01ca7f029e (diff) | |
| download | bcm5719-llvm-493c34a86cd837362f4c9395c1e59bda026d09db.tar.gz bcm5719-llvm-493c34a86cd837362f4c9395c1e59bda026d09db.zip | |
PR9580: Handle vectors correctly in ScalarExprEmitter::EmitRem.
While I'm here, FileCheck-ize the ext-vector test, so we actually check
what it is generating.
llvm-svn: 129241
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/CGExprScalar.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprScalar.cpp b/clang/lib/CodeGen/CGExprScalar.cpp index a3c765e3528..65aa46fff06 100644 --- a/clang/lib/CodeGen/CGExprScalar.cpp +++ b/clang/lib/CodeGen/CGExprScalar.cpp @@ -1734,7 +1734,7 @@ Value *ScalarExprEmitter::EmitRem(const BinOpInfo &Ops) { EmitUndefinedBehaviorIntegerDivAndRemCheck(Ops, Zero, false); } - if (Ops.Ty->isUnsignedIntegerType()) + if (Ops.Ty->hasUnsignedIntegerRepresentation()) return Builder.CreateURem(Ops.LHS, Ops.RHS, "rem"); else return Builder.CreateSRem(Ops.LHS, Ops.RHS, "rem"); |

