[cfe-commits] r44800 - /cfe/trunk/CodeGen/CGExpr.cpp

Fariborz Jahanian fjahanian at apple.com
Mon Dec 10 11:29:59 PST 2007


This test started to fail on me after most recent update of clang and  
llvm:

CodeGen/globalinit.c
******************** TEST 'CodeGen/globalinit.c' FAILED!  
********************
Command:
  clang -emit-llvm CodeGen/globalinit.c
Output:
Assertion failed: (GV->getType()->getElementType() == Init->getType()  
&& "Initializer codegen type mismatch!"), function EmitGlobalVar, file  
CodeGenModule.cpp, line 492.


- fariborz

On Dec 10, 2007, at 10:52 AM, Devang Patel wrote:

> Author: dpatel
> Date: Mon Dec 10 12:52:06 2007
> New Revision: 44800
>
> URL: http://llvm.org/viewvc/llvm-project?rev=44800&view=rev
> Log:
> Add assert to flag incomplete bit-field support.
>
> Modified:
>    cfe/trunk/CodeGen/CGExpr.cpp
>
> Modified: cfe/trunk/CodeGen/CGExpr.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CGExpr.cpp?rev=44800&r1=44799&r2=44800&view=diff
>
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> = 
> ======================================================================
> --- cfe/trunk/CodeGen/CGExpr.cpp (original)
> +++ cfe/trunk/CodeGen/CGExpr.cpp Mon Dec 10 12:52:06 2007
> @@ -400,6 +400,9 @@
>   }
>
>   FieldDecl *Field = E->getMemberDecl();
> +
> +  assert (!Field->isBitField() && "Bit-field access is not yet  
> implmented");
> +
>   unsigned idx = CGM.getTypes().getLLVMFieldNo(Field);
>   llvm::Value *Idxs[2] =  
> { llvm::Constant::getNullValue(llvm::Type::Int32Ty),
>                             
> llvm::ConstantInt::get(llvm::Type::Int32Ty, idx) };
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list