summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGStmt.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2009-05-21 09:52:38 +0000
committerJay Foad <jay.foad@gmail.com>2009-05-21 09:52:38 +0000
commit7d0479f2c2d60ccff381ce63105168bd132fb304 (patch)
tree417d43f95d605528391e6ab8c9a460f9b6347b83 /clang/lib/CodeGen/CGStmt.cpp
parent9fc7856e3b6f549030863bf35441b456a0affec7 (diff)
downloadbcm5719-llvm-7d0479f2c2d60ccff381ce63105168bd132fb304.tar.gz
bcm5719-llvm-7d0479f2c2d60ccff381ce63105168bd132fb304.zip
Use v.data() instead of &v[0] when SmallVector v might be empty.
llvm-svn: 72210
Diffstat (limited to 'clang/lib/CodeGen/CGStmt.cpp')
-rw-r--r--clang/lib/CodeGen/CGStmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp
index 7f73c8886c2..da586b1d74c 100644
--- a/clang/lib/CodeGen/CGStmt.cpp
+++ b/clang/lib/CodeGen/CGStmt.cpp
@@ -801,7 +801,7 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) {
for (unsigned i = 0, e = S.getNumInputs(); i != e; i++) {
TargetInfo::ConstraintInfo Info(S.getInputConstraint(i),
S.getInputName(i));
- bool result = Target.validateInputConstraint(&OutputConstraintInfos[0],
+ bool result = Target.validateInputConstraint(OutputConstraintInfos.data(),
S.getNumOutputs(),
Info); result=result;
assert(result && "Failed to parse input constraint");
OpenPOWER on IntegriCloud