diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-03-07 03:57:15 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-03-07 03:57:15 +0000 |
commit | 8339b35ca05dd040a9a0ecfc92e7b49d80c5a96b (patch) | |
tree | fce63e3aea456e4410993ffba855fa83d6f6f4d6 /lib/CodeGen/CGExprScalar.cpp | |
parent | 1edf6b646ea161ce1193ba278ae88de82ff7114d (diff) |
Back out the patch in r66302, and re-fix it properly. We assume for
performance that the type of the returned llvm::Value for an expression
matches the converted type of the clang::Expr; mismatches will cause all
sorts of errors and silent miscompilations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66321 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
-rw-r--r-- | lib/CodeGen/CGExprScalar.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index 9afe450c58..8cd353408f 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/lib/CodeGen/CGExprScalar.cpp @@ -1015,9 +1015,6 @@ Value *ScalarExprEmitter::EmitCompare(const BinaryOperator *E,unsigned UICmpOpc, LHS, RHS, "cmp"); } else { // Unsigned integers and pointers. - // Casting becomes necessary with -fobjc-gc as one or the other my turn - // into an 'id' type due to generation of read barriers. - RHS = Builder.CreateBitCast(RHS, LHS->getType()); Result = Builder.CreateICmp((llvm::ICmpInst::Predicate)UICmpOpc, LHS, RHS, "cmp"); } |