[llvm-commits] [llvm-gcc-4.2] r54573 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Nick Lewycky
nicholas at mxc.ca
Fri Aug 8 19:33:01 PDT 2008
Author: nicholas
Date: Fri Aug 8 21:33:01 2008
New Revision: 54573
URL: http://llvm.org/viewvc/llvm-project?rev=54573&view=rev
Log:
Don't return NULL here.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=54573&r1=54572&r2=54573&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Fri Aug 8 21:33:01 2008
@@ -6984,7 +6984,7 @@
Idx.size());
if (ConstantExpr *CE = dyn_cast<ConstantExpr>(ArrayRef))
- return ConstantFoldConstantExpression(CE, &getTargetData());
+ return ConstantFoldConstantExpression(CE, &getTargetData()) || CE;
else
return ArrayRef;
}
More information about the llvm-commits
mailing list