[llvm-commits] [llvm] r157813 - /llvm/trunk/lib/CodeGen/Analysis.cpp
Chris Lattner
sabre at nondot.org
Fri Jun 1 08:02:53 PDT 2012
Author: lattner
Date: Fri Jun 1 10:02:52 2012
New Revision: 157813
URL: http://llvm.org/viewvc/llvm-project?rev=157813&view=rev
Log:
quick fix for PR13006, will check in testcase later.
Modified:
llvm/trunk/lib/CodeGen/Analysis.cpp
Modified: llvm/trunk/lib/CodeGen/Analysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/Analysis.cpp?rev=157813&r1=157812&r2=157813&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/Analysis.cpp (original)
+++ llvm/trunk/lib/CodeGen/Analysis.cpp Fri Jun 1 10:02:52 2012
@@ -332,7 +332,9 @@
// see if each is transparent.
for (unsigned i = 0, e =cast<StructType>(RetVal->getType())->getNumElements();
i != e; ++i) {
- const Value *InScalar = getNoopInput(FindInsertedValue(RetVal, i), TLI);
+ const Value *InScalar = FindInsertedValue(RetVal, i);
+ if (InScalar == 0) return false;
+ InScalar = getNoopInput(InScalar, TLI);
// If the scalar value being inserted is an extractvalue of the right index
// from the call, then everything is good.
More information about the llvm-commits
mailing list