[llvm-commits] CVS: llvm/lib/ExecutionEngine/ExecutionEngine.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Oct 25 22:35:27 PDT 2004
Changes in directory llvm/lib/ExecutionEngine:
ExecutionEngine.cpp updated: 1.60 -> 1.61
---
Log message:
Fix the interpreter crash that Michael McCracken found
---
Diffs of the changes: (+1 -0)
Index: llvm/lib/ExecutionEngine/ExecutionEngine.cpp
diff -u llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.60 llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.61
--- llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.60 Sat Oct 16 13:19:26 2004
+++ llvm/lib/ExecutionEngine/ExecutionEngine.cpp Tue Oct 26 00:35:14 2004
@@ -170,6 +170,7 @@
///
GenericValue ExecutionEngine::getConstantValue(const Constant *C) {
GenericValue Result;
+ if (isa<UndefValue>(C)) return Result;
if (ConstantExpr *CE = const_cast<ConstantExpr*>(dyn_cast<ConstantExpr>(C))) {
switch (CE->getOpcode()) {
More information about the llvm-commits
mailing list