summaryrefslogtreecommitdiff
path: root/lib/CodeGen/TargetInfo.cpp
diff options
context:
space:
mode:
authorAndy Gibbs <andyg1001@hotmail.co.uk>2013-10-14 07:02:04 +0000
committerAndy Gibbs <andyg1001@hotmail.co.uk>2013-10-14 07:02:04 +0000
commited9967eb7eff00f5ce61945540c5869559669408 (patch)
tree1d5362869e6b23535ecefd58935243517485184d /lib/CodeGen/TargetInfo.cpp
parentf0fc89c358cdd0717c0e12eb4a90e4a6ce956e98 (diff)
downloadclang-ed9967eb7eff00f5ce61945540c5869559669408.tar.gz
clang-ed9967eb7eff00f5ce61945540c5869559669408.tar.bz2
clang-ed9967eb7eff00f5ce61945540c5869559669408.tar.xz
Fixed "ArgSize may be used uninitialised" error when compiling with gcc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192570 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetInfo.cpp')
-rw-r--r--lib/CodeGen/TargetInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/TargetInfo.cpp b/lib/CodeGen/TargetInfo.cpp
index 8b8c90b3ef..ae44396895 100644
--- a/lib/CodeGen/TargetInfo.cpp
+++ b/lib/CodeGen/TargetInfo.cpp
@@ -5444,7 +5444,7 @@ llvm::Value *XCoreABIInfo::EmitVAArg(llvm::Value *VAListAddr, QualType Ty,
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");