aboutsummaryrefslogtreecommitdiffstats
path: root/lib/IR/DIBuilder.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-03-22 05:47:44 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-03-22 05:47:44 +0000
commitc204410d6bc435e7cb8ea768759a54135e8e92b5 (patch)
treeab44db08aa63a8f94a3e09d6491c4156c624af96 /lib/IR/DIBuilder.cpp
parent4087d67a567c2e276354e3778463f97c6ee0c021 (diff)
downloadexternal_llvm-c204410d6bc435e7cb8ea768759a54135e8e92b5.zip
external_llvm-c204410d6bc435e7cb8ea768759a54135e8e92b5.tar.gz
external_llvm-c204410d6bc435e7cb8ea768759a54135e8e92b5.tar.bz2
Reorder the DIFile field in DILexicalBlock to become a prefix common with other DIScopes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177703 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/DIBuilder.cpp')
-rw-r--r--lib/IR/DIBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/DIBuilder.cpp b/lib/IR/DIBuilder.cpp
index de01781..a97b740 100644
--- a/lib/IR/DIBuilder.cpp
+++ b/lib/IR/DIBuilder.cpp
@@ -1023,10 +1023,10 @@ DILexicalBlock DIBuilder::createLexicalBlock(DIDescriptor Scope, DIFile File,
static unsigned int unique_id = 0;
Value *Elts[] = {
GetTagConstant(VMContext, dwarf::DW_TAG_lexical_block),
+ File,
getNonCompileUnitScope(Scope),
ConstantInt::get(Type::getInt32Ty(VMContext), Line),
ConstantInt::get(Type::getInt32Ty(VMContext), Col),
- File,
ConstantInt::get(Type::getInt32Ty(VMContext), unique_id++)
};
DILexicalBlock R(MDNode::get(VMContext, Elts));