r192570 - Fixed "ArgSize may be used uninitialised" error when	compiling with gcc.
    Andy Gibbs 
    andyg1001 at hotmail.co.uk
       
    Mon Oct 14 00:02:04 PDT 2013
    
    
  
Author: andyg
Date: Mon Oct 14 02:02:04 2013
New Revision: 192570
URL: http://llvm.org/viewvc/llvm-project?rev=192570&view=rev
Log:
Fixed "ArgSize may be used uninitialised" error when compiling with gcc.
Modified:
    cfe/trunk/lib/CodeGen/TargetInfo.cpp
Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/TargetInfo.cpp?rev=192570&r1=192569&r2=192570&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/TargetInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/TargetInfo.cpp Mon Oct 14 02:02:04 2013
@@ -5444,7 +5444,7 @@ llvm::Value *XCoreABIInfo::EmitVAArg(llv
     AI.setCoerceToType(ArgTy);
   llvm::Type *ArgPtrTy = llvm::PointerType::getUnqual(ArgTy);
   llvm::Value *Val;
-  uint64_t ArgSize;
+  uint64_t ArgSize = 0;
   switch (AI.getKind()) {
   case ABIArgInfo::Expand:
     llvm_unreachable("Unsupported ABI kind for va_arg");
    
    
More information about the cfe-commits
mailing list