[llvm-commits] [llvm] r55224 - /llvm/trunk/lib/VMCore/Constants.cpp

Chris Lattner sabre at nondot.org
Fri Aug 22 20:48:35 PDT 2008


Author: lattner
Date: Fri Aug 22 22:48:35 2008
New Revision: 55224

URL: http://llvm.org/viewvc/llvm-project?rev=55224&view=rev
Log:
the bug was apparently fixed long ago, reenable the assertion

Modified:
    llvm/trunk/lib/VMCore/Constants.cpp

Modified: llvm/trunk/lib/VMCore/Constants.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Constants.cpp?rev=55224&r1=55223&r2=55224&view=diff

==============================================================================
--- llvm/trunk/lib/VMCore/Constants.cpp (original)
+++ llvm/trunk/lib/VMCore/Constants.cpp Fri Aug 22 22:48:35 2008
@@ -1097,8 +1097,7 @@
       ConstantClass *Result =
         ConstantCreator<ConstantClass,TypeClass,ValType>::create(Ty, V);
 
-      /// FIXME: why does this assert fail when loading 176.gcc?
-      //assert(Result->getType() == Ty && "Type specified is not correct!");
+      assert(Result->getType() == Ty && "Type specified is not correct!");
       I = Map.insert(I, std::make_pair(MapKey(Ty, V), Result));
 
       if (HasLargeKey)  // Remember the reverse mapping if needed.





More information about the llvm-commits mailing list