summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-08-04 17:00:46 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-08-04 17:00:46 +0000
commite073177e06cf2292858ca86d6bb1cfc6e92ac754 (patch)
treee7eb0766b176fb9855fcd3e0881e9b1b5b0a0bab /clang/lib/CodeGen/CGDebugInfo.cpp
parent70381a7b1877e17eddf2ef80122005a8ac02d783 (diff)
downloadbcm5719-llvm-e073177e06cf2292858ca86d6bb1cfc6e92ac754.tar.gz
bcm5719-llvm-e073177e06cf2292858ca86d6bb1cfc6e92ac754.zip
Simplify code, no functionality change.
llvm-svn: 161303
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index dd0685e6a18..ce3d97abe32 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -2601,9 +2601,7 @@ void CGDebugInfo::EmitGlobalVariable(llvm::GlobalVariable *Var,
if (T->isIncompleteArrayType()) {
// CodeGen turns int[] into int[1] so we'll do the same here.
- llvm::APSInt ConstVal(32);
-
- ConstVal = 1;
+ llvm::APInt ConstVal(32, 1);
QualType ET = CGM.getContext().getAsArrayType(T)->getElementType();
T = CGM.getContext().getConstantArrayType(ET, ConstVal,
@@ -2637,9 +2635,7 @@ void CGDebugInfo::EmitGlobalVariable(llvm::GlobalVariable *Var,
if (T->isIncompleteArrayType()) {
// CodeGen turns int[] into int[1] so we'll do the same here.
- llvm::APSInt ConstVal(32);
-
- ConstVal = 1;
+ llvm::APInt ConstVal(32, 1);
QualType ET = CGM.getContext().getAsArrayType(T)->getElementType();
T = CGM.getContext().getConstantArrayType(ET, ConstVal,
OpenPOWER on IntegriCloud