[llvm] r290170 - Fix build with expensive checks enabled

Serge Pavlov via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 20 00:48:53 PST 2016


Author: sepavloff
Date: Tue Dec 20 02:48:51 2016
New Revision: 290170

URL: http://llvm.org/viewvc/llvm-project?rev=290170&view=rev
Log:
Fix build with expensive checks enabled

Include of llvm/IR/Verifier.h was removed from HexagonCommonGEP.cpp in r289604
as unused. In fact it is required when expensive checks are enabled, because
it declared function `verifyFunction`, which is called in conditionally compiled
part of the file.

Modified:
    llvm/trunk/lib/Target/Hexagon/HexagonCommonGEP.cpp

Modified: llvm/trunk/lib/Target/Hexagon/HexagonCommonGEP.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonCommonGEP.cpp?rev=290170&r1=290169&r2=290170&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonCommonGEP.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonCommonGEP.cpp Tue Dec 20 02:48:51 2016
@@ -27,6 +27,7 @@
 #include "llvm/IR/Use.h"
 #include "llvm/IR/User.h"
 #include "llvm/IR/Value.h"
+#include "llvm/IR/Verifier.h"
 #include "llvm/Pass.h"
 #include "llvm/Support/Allocator.h"
 #include "llvm/Support/Casting.h"




More information about the llvm-commits mailing list