[llvm-commits] CVS: llvm/lib/VMCore/IntrinsicInst.cpp
Jim Laskey
jlaskey at apple.com
Sun Mar 26 14:46:42 PST 2006
Changes in directory llvm/lib/VMCore:
IntrinsicInst.cpp updated: 1.3 -> 1.4
---
Log message:
Bullet proof against undefined args produced by upgrading ols-style debug info.
---
Diffs of the changes: (+3 -3)
IntrinsicInst.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/VMCore/IntrinsicInst.cpp
diff -u llvm/lib/VMCore/IntrinsicInst.cpp:1.3 llvm/lib/VMCore/IntrinsicInst.cpp:1.4
--- llvm/lib/VMCore/IntrinsicInst.cpp:1.3 Fri Mar 24 04:08:23 2006
+++ llvm/lib/VMCore/IntrinsicInst.cpp Sun Mar 26 16:46:27 2006
@@ -45,13 +45,13 @@
Value *DbgInfoIntrinsic::StripCast(Value *C) {
if (Value *CO = CastOperand(C)) {
- return StripCast(CO);
+ C = StripCast(CO);
} else if (GlobalVariable *GV = dyn_cast<GlobalVariable>(C)) {
if (GV->hasInitializer())
if (Value *CO = CastOperand(GV->getInitializer()))
- return StripCast(CO);
+ C = StripCast(CO);
}
- return C;
+ return dyn_cast<GlobalVariable>(C);
}
//===----------------------------------------------------------------------===//
More information about the llvm-commits
mailing list