llvm.org GIT mirror llvm / 5a45bf1
loosen up an assertion that isn't valid when called from invalidateCachedPointerInfo. Thanks to Bill for sending me a testcase. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60805 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 10 years ago
2 changed file(s) with 27 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
686686 for (unsigned i = 0, e = PInfo.size(); i != e; ++i) {
687687 Instruction *Target = PInfo[i].second.getInst();
688688 if (Target == 0) continue; // Ignore non-local dep results.
689 assert(Target->getParent() == PInfo[i].first && Target != P.getPointer());
689 assert(Target->getParent() == PInfo[i].first);
690690
691691 // Eliminating the dirty entry from 'Cache', so update the reverse info.
692692 RemoveFromReverseMap(ReverseNonLocalPtrDeps, Target, P.getOpaqueValue());
0 ; RUN: llvm-as < %s | opt -gvn | llvm-dis | grep getelementptr | count 1
1
2 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
3 target triple = "i386-apple-darwin9.5"
4 %struct.anon = type { i8*, i32 }
5 %struct.d_print_info = type { i32, i8*, i32, i32, %struct.d_print_template*, %struct.d_print_mod*, i32 }
6 %struct.d_print_mod = type { %struct.d_print_mod*, %struct.demangle_component*, i32, %struct.d_print_template* }
7 %struct.d_print_template = type { %struct.d_print_template*, %struct.demangle_component* }
8 %struct.demangle_component = type { i32, { %struct.anon } }
9
10 define void @d_print_mod_list(%struct.d_print_info* %dpi, %struct.d_print_mod* %mods, i32 %suffix) nounwind {
11 entry:
12 %0 = getelementptr %struct.d_print_info* %dpi, i32 0, i32 1 ; [#uses=1]
13 br i1 false, label %return, label %bb
14
15 bb: ; preds = %entry
16 %1 = load i8** %0, align 4 ; [#uses=0]
17 %2 = getelementptr %struct.d_print_info* %dpi, i32 0, i32 1 ; [#uses=0]
18 br label %bb21
19
20 bb21: ; preds = %bb21, %bb
21 br label %bb21
22
23 return: ; preds = %entry
24 ret void
25 }