[llvm-commits] CVS: llvm/lib/AsmParser/llvmAsmParser.y
Reid Spencer
reid at x10sys.com
Mon Apr 16 15:02:18 PDT 2007
Changes in directory llvm/lib/AsmParser:
llvmAsmParser.y updated: 1.342 -> 1.343
---
Log message:
Okay, yes there *is* a getKeyLength method on ValueName. And, it should be
used because we *do* want to allow nulls in names.
---
Diffs of the changes: (+1 -1)
llvmAsmParser.y | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/AsmParser/llvmAsmParser.y
diff -u llvm/lib/AsmParser/llvmAsmParser.y:1.342 llvm/lib/AsmParser/llvmAsmParser.y:1.343
--- llvm/lib/AsmParser/llvmAsmParser.y:1.342 Mon Apr 16 15:31:06 2007
+++ llvm/lib/AsmParser/llvmAsmParser.y Mon Apr 16 17:01:57 2007
@@ -2823,7 +2823,7 @@
// Check for call to invalid intrinsic to avoid crashing later.
if (Function *theF = dyn_cast<Function>(V)) {
- if (theF->hasName() && (strlen(theF->getValueName()->getKeyData()) >= 5)&&
+ if (theF->hasName() && (theF->getValueName()->getKeyLength() >= 5) &&
(0 == strncmp(theF->getValueName()->getKeyData(), "llvm.", 5)) &&
!theF->getIntrinsicID(true))
GEN_ERROR("Call to invalid LLVM intrinsic function '" +
More information about the llvm-commits
mailing list