summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprConstant.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-02-02 12:15:55 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-02-02 12:15:55 +0000
commit173bfe477b36503d510172eec41817ee917a8389 (patch)
tree48377f58362347108c0ca103dfe9b9157e76da04 /clang/lib/CodeGen/CGExprConstant.cpp
parent03c4848bf4eab62311d277400afd8807eab05cd3 (diff)
downloadbcm5719-llvm-173bfe477b36503d510172eec41817ee917a8389.tar.gz
bcm5719-llvm-173bfe477b36503d510172eec41817ee917a8389.zip
Use the Arg variable rather than re-computing it. This also silences GCC's
unused variable warning. llvm-svn: 95085
Diffstat (limited to 'clang/lib/CodeGen/CGExprConstant.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprConstant.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprConstant.cpp b/clang/lib/CodeGen/CGExprConstant.cpp
index f4dd8dc337a..81209da6c6f 100644
--- a/clang/lib/CodeGen/CGExprConstant.cpp
+++ b/clang/lib/CodeGen/CGExprConstant.cpp
@@ -685,7 +685,7 @@ public:
assert(CGM.getContext().hasSameUnqualifiedType(Ty, Arg->getType()) &&
"argument to copy ctor is of wrong type");
- return Visit(E->getArg(0));
+ return Visit(Arg);
}
return CGM.EmitNullConstant(Ty);
OpenPOWER on IntegriCloud