summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGValue.h
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-04-02 18:55:21 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-04-02 18:55:21 +0000
commite3b172afc33004cb11299e21dbea1dbb4cc4dc27 (patch)
tree2da7994df7369352010a32f0c0c489f7c8c19ea7 /clang/lib/CodeGen/CGValue.h
parenta64723c2bf3a6dade77aa9b87046ec1e72b0a669 (diff)
downloadbcm5719-llvm-e3b172afc33004cb11299e21dbea1dbb4cc4dc27.tar.gz
bcm5719-llvm-e3b172afc33004cb11299e21dbea1dbb4cc4dc27.zip
[opaque pointer type] Update for GEP API changes in LLVM
Now the GEP constant utility functions require the type to be explicitly passed (since eventually the pointer type will be opaque and not convey the required type information). For now callers can still pass nullptr (though none were needed here in Clang, which is nice) if convenienc/necessary, but eventually that will be disallowed as well. llvm-svn: 233937
Diffstat (limited to 'clang/lib/CodeGen/CGValue.h')
-rw-r--r--clang/lib/CodeGen/CGValue.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGValue.h b/clang/lib/CodeGen/CGValue.h
index 82cd9496e00..92055917dba 100644
--- a/clang/lib/CodeGen/CGValue.h
+++ b/clang/lib/CodeGen/CGValue.h
@@ -19,6 +19,7 @@
#include "clang/AST/CharUnits.h"
#include "clang/AST/Type.h"
#include "llvm/IR/Value.h"
+#include "llvm/IR/Type.h"
namespace llvm {
class Constant;
@@ -299,6 +300,7 @@ public:
LValue R;
R.LVType = Simple;
+ assert(address->getType()->isPointerTy());
R.V = address;
R.Initialize(type, qs, alignment, TBAAInfo);
return R;
OpenPOWER on IntegriCloud