[cfe-commits] r67899 - /cfe/trunk/lib/CodeGen/CGExprScalar.cpp

Eli Friedman eli.friedman at gmail.com
Fri Mar 27 20:27:06 PDT 2009


Author: efriedma
Date: Fri Mar 27 22:27:06 2009
New Revision: 67899

URL: http://llvm.org/viewvc/llvm-project?rev=67899&view=rev
Log:
Trivial cleanup.


Modified:
    cfe/trunk/lib/CodeGen/CGExprScalar.cpp

Modified: cfe/trunk/lib/CodeGen/CGExprScalar.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExprScalar.cpp?rev=67899&r1=67898&r2=67899&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGExprScalar.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExprScalar.cpp Fri Mar 27 22:27:06 2009
@@ -531,8 +531,8 @@
   Value *Base = Visit(E->getBase());
   Value *Idx  = Visit(E->getIdx());
   bool IdxSigned = E->getIdx()->getType()->isSignedIntegerType();
-  Idx = Builder.CreateIntCast(Idx, llvm::IntegerType::get(32),
-                              IdxSigned, "vecidxcast");
+  Idx = Builder.CreateIntCast(Idx, llvm::Type::Int32Ty, IdxSigned,
+                              "vecidxcast");
   return Builder.CreateExtractElement(Base, Idx, "vecext");
 }
 





More information about the cfe-commits mailing list