aboutsummaryrefslogtreecommitdiff
path: root/src/analyzer.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-01-05 11:26:18 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-01-05 11:26:18 -0800
commit048cb329be8de531a7f427c95187fae1f86f24a7 (patch)
tree866ee9457343f22e395a7b1dd09bdec14065f560 /src/analyzer.js
parent3d8cee8e467ab21e197f93e424b9912368d55526 (diff)
handle the case where there is no explicit label for the entry, and the name of the entry is important for phi purposes
Diffstat (limited to 'src/analyzer.js')
-rw-r--r--src/analyzer.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/analyzer.js b/src/analyzer.js
index 974dd67d..3feaff92 100644
--- a/src/analyzer.js
+++ b/src/analyzer.js
@@ -69,10 +69,10 @@ function analyzer(data, sidePass) {
subItem.labels = [];
// no explicit 'entry' label in clang on LLVM 2.8 - most of the time, but not all the time! - so we add one if necessary
- if (LLVM_STYLE == 'new' && item.items[i+1].intertype !== 'label') {
+ if (item.items[i+1].intertype !== 'label') {
item.items.splice(i+1, 0, {
intertype: 'label',
- ident: toNiceIdent('%0'),
+ ident: toNiceIdent('%1'),
lineNum: subItem.lineNum + '.5'
});
}