From 6ab018ec2ecac1c3a5b439e98414ee18526a6d4c Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Wed, 13 Jan 2016 22:40:24 +0000 Subject: [PATCH] Include IR/DerivedTypes.h instead of IR/Type.h to match LLVM change r256406. This is similar to r256407 and fixes the following warning: In file included from /work/llvm-3.8/llvm.src/tools/lldb/source/Target/ThreadPlanCallFunctionUsingABI.cpp:14: In file included from /work/llvm-3.8/llvm.src/tools/lldb/include/lldb/Target/ThreadPlanCallFunctionUsingABI.h:23: /work/llvm-3.8/llvm.src/include/llvm/IR/Type.h:350:16: error: inline function 'llvm::Type::getSequentialElementType' is not defined [-Werror,-Wundefined-inline] inline Type *getSequentialElementType() const; ^ /work/llvm-3.8/llvm.src/include/llvm/IR/Type.h:353:46: note: used here Type *getArrayElementType() const { return getSequentialElementType(); } ^ 1 error generated. I'm not sure why it's not showing on any bots. llvm-svn: 257691 --- lldb/include/lldb/Target/ThreadPlanCallFunctionUsingABI.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/include/lldb/Target/ThreadPlanCallFunctionUsingABI.h b/lldb/include/lldb/Target/ThreadPlanCallFunctionUsingABI.h index 529057175287..3506ebab6ce0 100644 --- a/lldb/include/lldb/Target/ThreadPlanCallFunctionUsingABI.h +++ b/lldb/include/lldb/Target/ThreadPlanCallFunctionUsingABI.h @@ -20,7 +20,7 @@ #include "lldb/Target/ThreadPlanCallFunction.h" #include "llvm/ADT/ArrayRef.h" -#include "llvm/IR/Type.h" +#include "llvm/IR/DerivedTypes.h" namespace lldb_private {