[llvm-commits] CVS: llvm/lib/VMCore/Function.cpp

Reid Spencer reid at x10sys.com
Mon Apr 16 00:09:05 PDT 2007



Changes in directory llvm/lib/VMCore:

Function.cpp updated: 1.119 -> 1.120
---
Log message:

Fix test/CodeGen/Generic/vector-constantexpr.ll


---
Diffs of the changes:  (+2 -0)

 Function.cpp |    2 ++
 1 files changed, 2 insertions(+)


Index: llvm/lib/VMCore/Function.cpp
diff -u llvm/lib/VMCore/Function.cpp:1.119 llvm/lib/VMCore/Function.cpp:1.120
--- llvm/lib/VMCore/Function.cpp:1.119	Mon Apr 16 01:54:34 2007
+++ llvm/lib/VMCore/Function.cpp	Mon Apr 16 02:08:44 2007
@@ -226,6 +226,8 @@
 ///
 unsigned Function::getIntrinsicID(bool noAssert) const {
   const ValueName *ValName = this->getValueName();
+  if (!ValName)
+    return 0;
   unsigned Len = ValName->getKeyLength();
   const char *Name = ValName->getKeyData();
   






More information about the llvm-commits mailing list